Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002064/0.002064, allocations: 88.66 kB / 20.95 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002482/0.002482, allocations: 153.1 kB / 24.25 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 173.4 MB / 200.8 MB, free: 9.289 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.849e-05/3.086e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004985/0.005016, allocations: 2.305 MB / 269.6 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.006428, allocations: 499.2 kB / 270.1 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.006575, allocations: 7.938 kB / 270.1 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.006838, allocations: 55.5 kB / 270.2 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.007086, allocations: 91.2 kB / 270.2 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006918/0.007778, allocations: 195.6 kB / 270.4 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007467/0.008524, allocations: 498.8 kB / 270.9 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.008722, allocations: 56.8 kB / 271 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005484/0.00927, allocations: 295.4 kB / 271.3 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004264/0.009697, allocations: 199.5 kB / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.245e-05/0.009789, allocations: 40 kB / 271.5 MB, free: 2.5 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.01002, allocations: 83.94 kB / 271.6 MB, free: 2.418 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.01019, allocations: 103.7 kB / 271.7 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002265/0.01042, allocations: 135.7 kB / 271.8 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008594/0.01128, allocations: 0.5023 MB / 272.3 MB, free: 1.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.01128, allocations: 0 / 272.3 MB, free: 1.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01129, allocations: 0 / 272.3 MB, free: 1.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.01129, allocations: 0 / 272.3 MB, free: 1.68 MB / 250.7 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.00171/0.013, allocations: 0.5871 MB / 272.9 MB, free: 1.059 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.01305, allocations: 8.922 kB / 272.9 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.01326, allocations: 60.7 kB / 273 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.01383, allocations: 238 kB / 273.2 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.053e-05/0.01388, allocations: 21.03 kB / 273.2 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.014, allocations: 32.38 kB / 273.3 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.01501, allocations: 378.5 kB / 273.6 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.01503, allocations: 4.141 kB / 273.6 MB, free: 312 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/0.01509, allocations: 12.38 kB / 273.6 MB, free: 300 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.0151, allocations: 8.375 kB / 273.6 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.01628, allocations: 402.4 kB / 274 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.01876, allocations: 0.9526 MB / 275 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.01936, allocations: 276.1 kB / 275.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004003/0.01976, allocations: 185.8 kB / 275.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.0198, allocations: 4 kB / 275.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.01984, allocations: 42.5 kB / 275.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 2.084e-06/0.01984, allocations: 0 / 275.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.005275/0.02512, allocations: 1.737 MB / 277.2 MB, free: 12.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.02517, allocations: 59.41 kB / 277.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.02551, allocations: 241.6 kB / 277.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.234e-05/0.02558, allocations: 37.7 kB / 277.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.02577, allocations: 153 kB / 277.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.02597, allocations: 154.7 kB / 277.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.0262, allocations: 102.1 kB / 278 MB, free: 11.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.02641, allocations: 338.8 kB / 278.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004679/0.02688, allocations: 212.9 kB / 278.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005039/0.02738, allocations: 280.3 kB / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007442/0.02812, allocations: 382.7 kB / 279.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.02813, allocations: 0 / 279.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001746/0.02987, allocations: 0.7213 MB / 279.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.02989, allocations: 11.94 kB / 279.9 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.0299, allocations: 3.984 kB / 279.9 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009776/0.03088, allocations: 493.5 kB / 280.4 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.03119, allocations: 71.84 kB / 280.4 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001622/0.03281, allocations: 1.397 MB / 281.8 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.03326, allocations: 72.03 kB / 281.9 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.978e-05/0.03331, allocations: 16 kB / 281.9 MB, free: 7.703 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 (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.0002401/0.03355, allocations: 153.8 kB / 282.1 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.03368, allocations: 51.8 kB / 282.1 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.03382, allocations: 43.31 kB / 282.2 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.03383, allocations: 7.938 kB / 282.2 MB, free: 7.438 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.03384, allocations: 4 kB / 282.2 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.03385, allocations: 3.984 kB / 282.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003101/0.03695, allocations: 1.216 MB / 283.4 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.03695, allocations: 0 / 283.4 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.03725, allocations: 63.91 kB / 283.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008645/0.03812, allocations: 457.5 kB / 283.9 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.758e-05/0.03817, allocations: 27.97 kB / 283.9 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.03978, allocations: 1.339 MB / 285.3 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.03978, allocations: 192 / 285.3 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.04196, allocations: 0.9642 MB / 286.2 MB, free: 3.223 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000229/0.04219, allocations: 83.77 kB / 286.3 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.684e-05/0.04228, allocations: 16 kB / 286.3 MB, free: 3.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.04262, allocations: 39.95 kB / 286.4 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/0.04287, allocations: 87.86 kB / 286.5 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.147e-05/0.04292, allocations: 23.98 kB / 286.5 MB, free: 2.977 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001951/0.04311, allocations: 169.2 kB / 286.6 MB, free: 2.812 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04311, allocations: 0 / 286.6 MB, free: 2.812 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005459/0.04366, allocations: 111.9 kB / 286.8 MB, free: 2.703 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003006/0.04396, allocations: 143.1 kB / 286.9 MB, free: 2.555 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.04521, allocations: 480.9 kB / 287.4 MB, free: 2.082 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.04522, allocations: 4 kB / 287.4 MB, free: 2.078 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000703/0.04592, allocations: 289.8 kB / 287.6 MB, free: 1.797 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000553/0.04648, allocations: 75.47 kB / 287.7 MB, free: 1.727 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.04922, allocations: 0.8797 MB / 288.6 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.04943, allocations: 169.8 kB / 288.8 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001695/0.0496, allocations: 34.97 kB / 288.8 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.0497, allocations: 28.5 kB / 288.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.0497, allocations: 0 / 288.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of Templates: time 0.1134/0.1631, allocations: 7.294 MB / 296.1 MB, free: 31.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.541706608957611]