Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 108.2 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 58.58 kB / 347.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3174, allocations: 49.16 MB / 396.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003524/0.3209, allocations: 2.445 MB / 398.8 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.322, allocations: 0.4964 MB / 399.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.3221, allocations: 7.031 kB / 399.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.3223, allocations: 53.86 kB / 399.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.3225, allocations: 85.2 kB / 399.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005057/0.323, allocations: 192 kB / 399.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005062/0.3235, allocations: 495.1 kB / 400.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.3236, allocations: 64.34 kB / 400.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.3239, allocations: 213.9 kB / 400.4 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.3242, allocations: 244.7 kB / 400.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.35e-05/0.3243, allocations: 40.72 kB / 400.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.3245, allocations: 94.2 kB / 400.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.3246, allocations: 95.09 kB / 400.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.3248, allocations: 188 kB / 401 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006717/0.3255, allocations: 465.3 kB / 401.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3255, allocations: 0 / 401.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.3255, allocations: 1.438 kB / 401.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.3255, allocations: 0 / 401.5 MB, free: 5.918 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001163/0.3266, allocations: 0.593 MB / 402.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3267, allocations: 13.58 kB / 402.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.826e-05/0.3268, allocations: 62.09 kB / 402.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.081e-05/0.3268, allocations: 38.05 kB / 402.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.3272, allocations: 227.2 kB / 402.4 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.3272, allocations: 22.52 kB / 402.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.316e-05/0.3273, allocations: 34.73 kB / 402.5 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007666/0.328, allocations: 381.5 kB / 402.8 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.3281, allocations: 5 kB / 402.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.3281, allocations: 11.42 kB / 402.8 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.3281, allocations: 6.531 kB / 402.8 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000793/0.3289, allocations: 406.3 kB / 403.2 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.331, allocations: 1.059 MB / 404.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005202/0.3316, allocations: 282.9 kB / 404.6 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.3319, allocations: 186 kB / 404.8 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/0.3319, allocations: 5.766 kB / 404.8 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.332, allocations: 40.91 kB / 404.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.435e-06/0.332, allocations: 0 / 404.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004089/0.3361, allocations: 1.732 MB / 406.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.3361, allocations: 60.77 kB / 406.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.3363, allocations: 237.6 kB / 406.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.3364, allocations: 42.03 kB / 406.9 MB, free: 3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.3364, allocations: 154.6 kB / 407 MB, free: 2.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.3365, allocations: 159.2 kB / 407.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.3367, allocations: 94.59 kB / 407.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/0.3368, allocations: 347.2 kB / 407.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.3371, allocations: 210.4 kB / 407.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.3375, allocations: 279.8 kB / 408.1 MB, free: 2.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/0.3381, allocations: 381.4 kB / 408.5 MB, free: 1.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3381, allocations: 0 / 408.5 MB, free: 1.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0013/0.3394, allocations: 0.689 MB / 409.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3394, allocations: 5.25 kB / 409.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3394, allocations: 2.625 kB / 409.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008487/0.3402, allocations: 493.4 kB / 409.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.3405, allocations: 81.09 kB / 409.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.3415, allocations: 1.391 MB / 411.1 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.3419, allocations: 70.62 kB / 411.2 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.342, allocations: 25.27 kB / 411.2 MB, free: 292 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001732/0.3422, allocations: 158.3 kB / 411.4 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.098e-05/0.3422, allocations: 30.34 kB / 411.4 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.3423, allocations: 49.27 kB / 411.4 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.3423, allocations: 3.688 kB / 411.4 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.3423, allocations: 5.062 kB / 411.4 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3424, allocations: 0 / 411.4 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002723/0.3451, allocations: 1.329 MB / 412.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3451, allocations: 1.281 kB / 412.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002616/0.3453, allocations: 67.19 kB / 412.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006888/0.346, allocations: 457.3 kB / 413.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-05/0.3461, allocations: 21.84 kB / 413.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.3473, allocations: 1.337 MB / 414.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3473, allocations: 2.406 kB / 414.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.349, allocations: 0.9324 MB / 415.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.3492, allocations: 73.97 kB / 415.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/0.3493, allocations: 26.55 kB / 415.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.3496, allocations: 39.8 kB / 415.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.3498, allocations: 87.45 kB / 415.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.3498, allocations: 26.5 kB / 415.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001647/0.35, allocations: 169.9 kB / 416 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.35, allocations: 0 / 416 MB, free: 12.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.3505, allocations: 100.4 kB / 416.1 MB, free: 12.84 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00219/0.3526, allocations: 1.516 MB / 417.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3537, allocations: 484.1 kB / 418.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3537, allocations: 1.094 kB / 418.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005799/0.3543, allocations: 280.7 kB / 418.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004867/0.3548, allocations: 54.88 kB / 418.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006882/0.3616, allocations: 4.13 MB / 422.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3621, allocations: 0.7762 MB / 423.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.3622, allocations: 38.97 kB / 423.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.3624, allocations: 95.39 kB / 423.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3624, allocations: 0 / 423.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05013/0.4125, allocations: 12.2 MB / 435.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.19, allocations: 3.859 kB / 435.7 MB, free: 11.18 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.847310321871191]