Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001258/0.001258, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001321/0.001321, allocations: 209.2 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 43.94 kB / 377.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2371, allocations: 53.36 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003951/0.2411, allocations: 2.423 MB / 433.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.2421, allocations: 0.5771 MB / 434.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2422, allocations: 7.938 kB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.2425, allocations: 75.42 kB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.2428, allocations: 131.1 kB / 434.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.2431, allocations: 167.7 kB / 434.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005442/0.2437, allocations: 0.5109 MB / 434.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.2438, allocations: 48.91 kB / 435 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.2441, allocations: 243.3 kB / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003486/0.2444, allocations: 255.1 kB / 435.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.171e-05/0.2445, allocations: 44 kB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.2447, allocations: 87.98 kB / 435.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.2449, allocations: 111.7 kB / 435.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.245, allocations: 171.3 kB / 435.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006068/0.2456, allocations: 0.5063 MB / 436.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.2457, allocations: 4 kB / 436.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.2457, allocations: 3.984 kB / 436.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.2457, allocations: 4 kB / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001407/0.2471, allocations: 0.6336 MB / 437 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2471, allocations: 12.03 kB / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.655e-05/0.2472, allocations: 66.72 kB / 437.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.2473, allocations: 44.7 kB / 437.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005273/0.2478, allocations: 241.8 kB / 437.4 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.2479, allocations: 25.03 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.43e-05/0.248, allocations: 28.38 kB / 437.4 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007754/0.2487, allocations: 374.5 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/0.2488, allocations: 15.88 kB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.2488, allocations: 12 kB / 437.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.2488, allocations: 8 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008177/0.2496, allocations: 382.4 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.2516, allocations: 1.002 MB / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006267/0.2523, allocations: 323 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.2526, allocations: 172.8 kB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.2527, allocations: 8 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.2527, allocations: 34.55 kB / 439.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.794e-06/0.2527, allocations: 0 / 439.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004592/0.2573, allocations: 1.711 MB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.2573, allocations: 63.84 kB / 441.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003099/0.2577, allocations: 261 kB / 441.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.684e-05/0.2577, allocations: 41.64 kB / 441.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2578, allocations: 157 kB / 442 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.258, allocations: 178.5 kB / 442.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.2582, allocations: 94.28 kB / 442.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.2583, allocations: 342.8 kB / 442.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.2587, allocations: 193.2 kB / 442.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004491/0.2592, allocations: 269.8 kB / 443 MB, free: 10.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006309/0.2598, allocations: 357.6 kB / 443.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2598, allocations: 0 / 443.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001237/0.261, allocations: 0.599 MB / 444 MB, free: 9.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.2611, allocations: 11.98 kB / 444 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2611, allocations: 4.156 kB / 444 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007292/0.2618, allocations: 337.5 kB / 444.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.2621, allocations: 63.97 kB / 444.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.2637, allocations: 1.37 MB / 445.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004309/0.2642, allocations: 68.08 kB / 445.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.351e-05/0.2642, allocations: 23.98 kB / 445.8 MB, free: 7.492 MB / 350.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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000293/0.2645, allocations: 162.3 kB / 446 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.856e-05/0.2646, allocations: 39.78 kB / 446 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.2647, allocations: 55.61 kB / 446.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.2647, allocations: 4.188 kB / 446.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2647, allocations: 0 / 446.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2647, allocations: 11.92 kB / 446.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/0.2676, allocations: 1.228 MB / 447.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2676, allocations: 3.938 kB / 447.3 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.2679, allocations: 59.91 kB / 447.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006411/0.2685, allocations: 305.7 kB / 447.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/0.2685, allocations: 23.91 kB / 447.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.2698, allocations: 1.308 MB / 449 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2698, allocations: 3.938 kB / 449 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.2716, allocations: 0.9143 MB / 449.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.2719, allocations: 83.73 kB / 450 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.537e-05/0.272, allocations: 16 kB / 450 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.2723, allocations: 39.89 kB / 450.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.2725, allocations: 87.77 kB / 450.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.2725, allocations: 27.97 kB / 450.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002081/0.2727, allocations: 176.5 kB / 450.4 MB, free: 2.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2727, allocations: 4 kB / 450.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004775/0.2732, allocations: 104 kB / 450.5 MB, free: 2.676 MB / 350.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003498/0.2767, allocations: 1.753 MB / 452.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.2778, allocations: 465.6 kB / 452.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2779, allocations: 7.938 kB / 452.7 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006328/0.2785, allocations: 275.7 kB / 453 MB, free: 312 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/0.2791, allocations: 66 kB / 453 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007076/0.2861, allocations: 4.045 MB / 457.1 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.2864, allocations: 185.8 kB / 457.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.2865, allocations: 38.95 kB / 457.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.2867, allocations: 103.4 kB / 457.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2867, allocations: 0 / 457.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04203/0.3287, allocations: 11.45 MB / 468.8 MB, free: 360 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.48, allocations: 11.88 kB / 468.8 MB, free: 348 kB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.8512314609834]