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.001243/0.001243, allocations: 101.4 kB / 21.95 MB, free: 5.219 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.001326/0.001326, allocations: 214 kB / 25.26 MB, free: 3.129 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.336/1.336, allocations: 207.7 MB / 236.1 MB, free: 9.789 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",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.001731/0.001731, allocations: 62.5 kB / 348 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.242, allocations: 49.15 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002919/0.2449, allocations: 2.274 MB / 399.4 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007922/0.2457, allocations: 498.5 kB / 399.9 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.2458, allocations: 3.312 kB / 399.9 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001815/0.246, allocations: 47.97 kB / 399.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2461, allocations: 90.72 kB / 400 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000434/0.2465, allocations: 191.8 kB / 400.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.247, allocations: 497.4 kB / 400.7 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.2471, allocations: 57.47 kB / 400.7 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002078/0.2473, allocations: 223.9 kB / 401 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002775/0.2476, allocations: 239.8 kB / 401.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.341e-05/0.2476, allocations: 37.69 kB / 401.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.2478, allocations: 101.7 kB / 401.3 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.2479, allocations: 99.84 kB / 401.4 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.2481, allocations: 150.3 kB / 401.6 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004908/0.2485, allocations: 465.9 kB / 402 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2485, allocations: 0 / 402 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2485, allocations: 1.375 kB / 402 MB, free: 6.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.2486, allocations: 0 / 402 MB, free: 6.035 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.00102/0.2496, allocations: 0.5944 MB / 402.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2496, allocations: 20.86 kB / 402.7 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.895e-05/0.2496, allocations: 16.72 kB / 402.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.582e-05/0.2497, allocations: 62.02 kB / 402.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.728e-05/0.2498, allocations: 41.83 kB / 402.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.2501, allocations: 219 kB / 403 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.2501, allocations: 24.7 kB / 403 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.055e-05/0.2502, allocations: 38.86 kB / 403 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006417/0.2508, allocations: 384.3 kB / 403.4 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.2508, allocations: 5 kB / 403.4 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.2509, allocations: 11.12 kB / 403.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.2509, allocations: 7.062 kB / 403.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006929/0.2516, allocations: 406.3 kB / 403.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.2532, allocations: 0.9873 MB / 404.8 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.2536, allocations: 271.7 kB / 405.1 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.2539, allocations: 190 kB / 405.3 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.254, allocations: 3.219 kB / 405.3 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.454e-05/0.254, allocations: 46.52 kB / 405.3 MB, free: 4.156 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.542e-06/0.254, allocations: 0 / 405.3 MB, free: 4.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.003879/0.2579, allocations: 1.727 MB / 407.1 MB, free: 3.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.2579, allocations: 57.12 kB / 407.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.2581, allocations: 237 kB / 407.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.2581, allocations: 45.86 kB / 407.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.2582, allocations: 151.3 kB / 407.5 MB, free: 2.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.2583, allocations: 162.8 kB / 407.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.2585, allocations: 101.5 kB / 407.8 MB, free: 2.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.376e-05/0.2585, allocations: 341.1 kB / 408.1 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/0.2589, allocations: 210.8 kB / 408.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/0.2593, allocations: 284.5 kB / 408.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005351/0.2598, allocations: 374.8 kB / 409 MB, free: 2.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2598, allocations: 5.625 kB / 409 MB, free: 2.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00132/0.2611, allocations: 0.6861 MB / 409.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.2611, allocations: 5.562 kB / 409.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2611, allocations: 1.438 kB / 409.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000795/0.2619, allocations: 0.4937 MB / 410.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.2622, allocations: 73.08 kB / 410.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000942/0.2631, allocations: 1.389 MB / 411.6 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.2635, allocations: 67.08 kB / 411.7 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.2636, allocations: 18.53 kB / 411.7 MB, free: 456 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.0001949/0.2638, allocations: 169 kB / 411.9 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.033e-05/0.2639, allocations: 35.02 kB / 411.9 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.264, allocations: 53.64 kB / 412 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.495e-06/0.264, allocations: 4.969 kB / 412 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.264, allocations: 7.938 kB / 412 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.264, allocations: 0 / 412 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.2668, allocations: 1.27 MB / 413.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.2668, allocations: 5.281 kB / 413.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002641/0.2671, allocations: 62.97 kB / 413.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007484/0.2678, allocations: 457.1 kB / 413.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.2679, allocations: 21.66 kB / 413.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.2691, allocations: 1.339 MB / 415.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2691, allocations: 1.906 kB / 415.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.2709, allocations: 0.9324 MB / 416.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/0.2712, allocations: 87.02 kB / 416.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.198e-05/0.2712, allocations: 15 kB / 416.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.2715, allocations: 43.83 kB / 416.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.2718, allocations: 86.3 kB / 416.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.031e-05/0.2718, allocations: 23.86 kB / 416.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001952/0.272, allocations: 169.9 kB / 416.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.272, allocations: 0 / 416.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005809/0.2726, allocations: 105 kB / 416.6 MB, free: 13.05 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.002228/0.2748, allocations: 1.508 MB / 418.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.2759, allocations: 481.1 kB / 418.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2759, allocations: 5.438 kB / 418.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005855/0.2765, allocations: 284.4 kB / 418.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.277, allocations: 51.23 kB / 418.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006853/0.2839, allocations: 4.153 MB / 423 MB, free: 8.449 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001811/0.2841, allocations: 177.7 kB / 423.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.2842, allocations: 34.97 kB / 423.2 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.2844, allocations: 91.39 kB / 423.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2844, allocations: 0 / 423.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03492/0.3193, allocations: 10.63 MB / 434 MB, free: 13.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.47, allocations: 8 kB / 434 MB, free: 13.42 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: 14.799560775980353]