Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001043/0.001043, allocations: 91.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.016/1.016, allocations: 177 MB / 204.8 MB, free: 5.238 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.396e-06/3.396e-06, allocations: 4 kB / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.029e-05/3.368e-05, allocations: 2.312 kB / 272.9 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004693/0.004727, allocations: 2.562 MB / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.006106, allocations: 0.5849 MB / 276.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002094/0.006315, allocations: 4 kB / 276.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000388/0.006703, allocations: 67.38 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004879/0.007191, allocations: 143 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004893/0.00768, allocations: 171.6 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007422/0.008422, allocations: 0.5185 MB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.008622, allocations: 52.88 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004993/0.009121, allocations: 315.5 kB / 277.3 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004099/0.009531, allocations: 211.5 kB / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.625e-05/0.009628, allocations: 40 kB / 277.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.009862, allocations: 95.91 kB / 277.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.01004, allocations: 115.6 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.01023, allocations: 139.7 kB / 277.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006118/0.01084, allocations: 410.6 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.01084, allocations: 0 / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.01085, allocations: 0 / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.01085, allocations: 0 / 278.3 MB, free: 11.88 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.001201/0.01206, allocations: 0.7218 MB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.0121, allocations: 8.031 kB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.01226, allocations: 68.64 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.01269, allocations: 256.7 kB / 279.3 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.01273, allocations: 25.03 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.165e-05/0.0128, allocations: 28.38 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006166/0.01342, allocations: 306.4 kB / 279.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.01344, allocations: 8.141 kB / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.01348, allocations: 8.375 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.01349, allocations: 8.375 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005387/0.01403, allocations: 243.7 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.01575, allocations: 0.9399 MB / 280.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004838/0.01623, allocations: 227.7 kB / 281.1 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.01648, allocations: 119.6 kB / 281.2 MB, free: 8.777 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.469e-05/0.01653, allocations: 12 kB / 281.3 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.01656, allocations: 41.27 kB / 281.3 MB, free: 8.715 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.235e-06/0.01656, allocations: 4 kB / 281.3 MB, free: 8.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.003575/0.02014, allocations: 1.399 MB / 282.7 MB, free: 7.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.02017, allocations: 63.89 kB / 282.8 MB, free: 7.164 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.02045, allocations: 280.3 kB / 283 MB, free: 6.875 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.02056, allocations: 41.69 kB / 283.1 MB, free: 6.828 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.02067, allocations: 207.7 kB / 283.3 MB, free: 6.621 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.02081, allocations: 170.6 kB / 283.4 MB, free: 6.453 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.02097, allocations: 103.9 kB / 283.5 MB, free: 6.344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.02115, allocations: 0.5079 MB / 284.1 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/0.02147, allocations: 129.2 kB / 284.2 MB, free: 5.699 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003283/0.0218, allocations: 220.5 kB / 284.4 MB, free: 5.449 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.02226, allocations: 281.4 kB / 284.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.02226, allocations: 0 / 284.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001056/0.02331, allocations: 484.5 kB / 285.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.02335, allocations: 11.94 kB / 285.2 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.02336, allocations: 4.141 kB / 285.2 MB, free: 4.641 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.02399, allocations: 279.1 kB / 285.4 MB, free: 4.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.02416, allocations: 63.91 kB / 285.5 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.0252, allocations: 1.748 MB / 287.2 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.02543, allocations: 48.02 kB / 287.3 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.02546, allocations: 23.98 kB / 287.3 MB, free: 2.414 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.0001579/0.02562, allocations: 188.4 kB / 287.5 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.02569, allocations: 47.81 kB / 287.5 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402e-05/0.02576, allocations: 55.55 kB / 287.6 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.02576, allocations: 4 kB / 287.6 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.02577, allocations: 3.938 kB / 287.6 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.02577, allocations: 4 kB / 287.6 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.02731, allocations: 1.091 MB / 288.7 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.02731, allocations: 3.984 kB / 288.7 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.02747, allocations: 55.98 kB / 288.8 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003417/0.02782, allocations: 267.3 kB / 289 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.02785, allocations: 19.97 kB / 289 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1301/0.1579, allocations: 1.728 MB / 290.8 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1579, allocations: 3 kB / 290.8 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.1591, allocations: 0.7671 MB / 291.5 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.1593, allocations: 83.73 kB / 291.6 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.929e-05/0.1594, allocations: 20.12 kB / 291.6 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.1595, allocations: 27.86 kB / 291.7 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.1597, allocations: 93.39 kB / 291.8 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.1597, allocations: 22.5 kB / 291.8 MB, free: 24.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001284/0.1599, allocations: 200.2 kB / 292 MB, free: 24.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-07/0.1599, allocations: 0.6875 kB / 292 MB, free: 24.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003752/0.1602, allocations: 98.31 kB / 292.1 MB, free: 24.01 MB / 266.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.0009493/0.1612, allocations: 357.7 kB / 292.4 MB, free: 23.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007362/0.1619, allocations: 379.4 kB / 292.8 MB, free: 23.9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1619, allocations: 0 / 292.8 MB, free: 23.9 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.1623, allocations: 223.6 kB / 293 MB, free: 23.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.1627, allocations: 107.8 kB / 293.1 MB, free: 23.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.1642, allocations: 0.8978 MB / 294 MB, free: 23.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.99e-05/0.1642, allocations: 103.2 kB / 294.1 MB, free: 23.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1643, allocations: 31.38 kB / 294.1 MB, free: 23.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.376e-05/0.1644, allocations: 37.52 kB / 294.2 MB, free: 23.38 MB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1644, allocations: 0 / 294.2 MB, free: 23.38 MB / 266.7 MB Notification: Performance of Templates: time 0.01052/0.175, allocations: 7.437 MB / 301.6 MB, free: 21.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.414055372122675]