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.001413/0.001413, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001253/0.001253, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9402/0.9402, allocations: 177.1 MB / 205 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.837e-05/4.036e-05, allocations: 6.25 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003575/0.003615, allocations: 2.566 MB / 275.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000954/0.004569, allocations: 0.5772 MB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.004706, allocations: 4 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.005003, allocations: 71.3 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002878/0.005291, allocations: 135 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.005599, allocations: 175.6 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004254/0.006025, allocations: 0.5263 MB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.006175, allocations: 40.92 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.006508, allocations: 315.4 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.006774, allocations: 211.5 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.838e-05/0.006832, allocations: 40 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.006995, allocations: 91.86 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.007128, allocations: 123.6 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.007242, allocations: 143.7 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004634/0.007706, allocations: 406.6 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.00771, allocations: 0 / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.007711, allocations: 0 / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.007717, allocations: 0 / 278.4 MB, free: 12.11 MB / 266.7 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.0008889/0.008606, allocations: 0.7256 MB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.008646, allocations: 8.031 kB / 279.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.008774, allocations: 60.7 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.009115, allocations: 256.6 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.009147, allocations: 29.03 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.009199, allocations: 28.38 kB / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004368/0.009636, allocations: 306.5 kB / 279.8 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.009649, allocations: 4.141 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.009676, allocations: 12.38 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.009686, allocations: 8.375 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000358/0.01004, allocations: 243.6 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.01123, allocations: 0.9555 MB / 281 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.01159, allocations: 232.4 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.01175, allocations: 115.6 kB / 281.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.01179, allocations: 8 kB / 281.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.01181, allocations: 37.39 kB / 281.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.873e-06/0.01182, allocations: 4 kB / 281.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002422/0.01424, allocations: 1.408 MB / 282.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.01427, allocations: 59.89 kB / 282.8 MB, free: 7.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.01447, allocations: 280.3 kB / 283.1 MB, free: 7.094 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.0145, allocations: 41.69 kB / 283.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.719e-05/0.01459, allocations: 211.7 kB / 283.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.32e-05/0.01468, allocations: 166.6 kB / 283.5 MB, free: 6.672 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.01479, allocations: 103.9 kB / 283.6 MB, free: 6.562 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.01493, allocations: 0.5079 MB / 284.1 MB, free: 6.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.01513, allocations: 129.2 kB / 284.2 MB, free: 5.918 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.01535, allocations: 216.5 kB / 284.5 MB, free: 5.672 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.01567, allocations: 281.3 kB / 284.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01567, allocations: 0 / 284.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0006705/0.01634, allocations: 484.6 kB / 285.2 MB, free: 4.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.01637, allocations: 15.92 kB / 285.2 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.01638, allocations: 0 / 285.2 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004459/0.01682, allocations: 275.3 kB / 285.5 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.01699, allocations: 75.84 kB / 285.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008383/0.01783, allocations: 1.744 MB / 287.3 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.01801, allocations: 47.89 kB / 287.4 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.01804, allocations: 19.98 kB / 287.4 MB, free: 2.633 MB / 266.7 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.0001441/0.01818, allocations: 192.5 kB / 287.6 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.473e-05/0.01826, allocations: 47.81 kB / 287.6 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.713e-05/0.01832, allocations: 47.61 kB / 287.7 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.01833, allocations: 8 kB / 287.7 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/0.01834, allocations: 3.938 kB / 287.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.01834, allocations: 0 / 287.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.01976, allocations: 1.09 MB / 288.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.01977, allocations: 0 / 288.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.01991, allocations: 55.92 kB / 288.8 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003161/0.02022, allocations: 263.3 kB / 289.1 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.02026, allocations: 23.97 kB / 289.1 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007509/0.02101, allocations: 1.737 MB / 290.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.02101, allocations: 4 kB / 290.8 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008547/0.02187, allocations: 0.7759 MB / 291.6 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.02198, allocations: 79.69 kB / 291.7 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.02203, allocations: 23.98 kB / 291.7 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.02215, allocations: 27.91 kB / 291.7 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.02228, allocations: 87.83 kB / 291.8 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.02231, allocations: 27.97 kB / 291.9 MB, free: 13.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001065/0.02242, allocations: 193.1 kB / 292 MB, free: 13.76 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02242, allocations: 0 / 292 MB, free: 13.76 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000286/0.0227, allocations: 100 kB / 292.1 MB, free: 13.66 MB / 282.7 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.0007127/0.02342, allocations: 374.1 kB / 292.5 MB, free: 13.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005791/0.024, allocations: 381.5 kB / 292.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.024, allocations: 4 kB / 292.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000262/0.02426, allocations: 218 kB / 293.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.0246, allocations: 99.12 kB / 293.2 MB, free: 12.72 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.02587, allocations: 0.9024 MB / 294.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.296e-05/0.02594, allocations: 101.3 kB / 294.2 MB, free: 11.65 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.737e-05/0.02602, allocations: 42.94 kB / 294.2 MB, free: 11.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/0.0261, allocations: 36.48 kB / 294.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.0261, allocations: 0 / 294.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of Templates: time 0.008516/0.03462, allocations: 7.425 MB / 301.7 MB, free: 4.215 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.20550095802173]