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.0009235/0.0009235, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001027/0.001027, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 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.9967/0.9967, allocations: 177.1 MB / 205.3 MB, free: 5.121 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.363e-06/1.363e-06, allocations: 0 / 273.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.117e-05, allocations: 2.312 kB / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003929/0.00395, allocations: 2.592 MB / 276.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.005111, allocations: 0.5887 MB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.00525, allocations: 7.938 kB / 276.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002898/0.005539, allocations: 67.38 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.005866, allocations: 139 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.006205, allocations: 171.6 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005282/0.006733, allocations: 0.5302 MB / 277.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.006873, allocations: 50.86 kB / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.007252, allocations: 311.5 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.007561, allocations: 207.5 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.36e-05/0.007624, allocations: 44 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.007797, allocations: 95.91 kB / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.007921, allocations: 111.7 kB / 278.4 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.008063, allocations: 147.6 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005396/0.008602, allocations: 406.6 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.008606, allocations: 0 / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.008607, allocations: 0 / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.008613, allocations: 4 kB / 278.9 MB, free: 11.69 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.0008851/0.009498, allocations: 0.5892 MB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.009533, allocations: 8.031 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.7e-05/0.00963, allocations: 60.83 kB / 279.6 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.009958, allocations: 213.9 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.009992, allocations: 25.03 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/0.01005, allocations: 32.38 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000417/0.01046, allocations: 278.4 kB / 280.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.01048, allocations: 4.141 kB / 280.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.01051, allocations: 8.375 kB / 280.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.01052, allocations: 8.375 kB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.01083, allocations: 171 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.01202, allocations: 0.7169 MB / 281 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002934/0.01231, allocations: 167.2 kB / 281.2 MB, free: 9.312 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.01244, allocations: 92.77 kB / 281.3 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.01248, allocations: 12 kB / 281.3 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.0125, allocations: 38.5 kB / 281.3 MB, free: 9.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.054e-06/0.01251, allocations: 0 / 281.3 MB, free: 9.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002646/0.01515, allocations: 1.205 MB / 282.5 MB, free: 7.898 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.01518, allocations: 59.91 kB / 282.6 MB, free: 7.828 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.01536, allocations: 230.6 kB / 282.8 MB, free: 7.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.0154, allocations: 41.69 kB / 282.8 MB, free: 7.543 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.571e-05/0.01547, allocations: 145 kB / 283 MB, free: 7.398 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.01557, allocations: 170.6 kB / 283.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.0157, allocations: 98.23 kB / 283.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.656e-05/0.0158, allocations: 342.8 kB / 283.6 MB, free: 6.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.01594, allocations: 77.28 kB / 283.7 MB, free: 6.711 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.01612, allocations: 161.8 kB / 283.8 MB, free: 6.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.01639, allocations: 225.4 kB / 284 MB, free: 6.281 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.01639, allocations: 0 / 284 MB, free: 6.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0005065/0.0169, allocations: 352 kB / 284.4 MB, free: 5.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.01691, allocations: 4 kB / 284.4 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.01692, allocations: 8.062 kB / 284.4 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000432/0.01735, allocations: 253.6 kB / 284.6 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.01755, allocations: 67.91 kB / 284.7 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007093/0.01826, allocations: 1.182 MB / 285.9 MB, free: 4.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.01848, allocations: 51.88 kB / 285.9 MB, free: 4.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.01851, allocations: 16 kB / 286 MB, free: 4.285 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.0001263/0.01863, allocations: 144.6 kB / 286.1 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.637e-05/0.0187, allocations: 35.97 kB / 286.1 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.315e-05/0.01876, allocations: 55.55 kB / 286.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.01877, allocations: 4 kB / 286.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.01877, allocations: 0 / 286.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.01878, allocations: 7.922 kB / 286.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/0.02013, allocations: 0.771 MB / 287 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.02013, allocations: 8.156 kB / 287 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.02033, allocations: 63.91 kB / 287 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003726/0.02071, allocations: 229.5 kB / 287.3 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.02074, allocations: 15.98 kB / 287.3 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006517/0.0214, allocations: 1.161 MB / 288.4 MB, free: 1.676 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.0214, allocations: 8.062 kB / 288.4 MB, free: 1.668 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009184/0.02232, allocations: 0.5721 MB / 289 MB, free: 1.062 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.02244, allocations: 47.78 kB / 289.1 MB, free: 1.016 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.0225, allocations: 27.94 kB / 289.1 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.02266, allocations: 23.97 kB / 289.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.02282, allocations: 91.75 kB / 289.2 MB, free: 0.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.02285, allocations: 19.98 kB / 289.2 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.768e-05/0.02293, allocations: 74.77 kB / 289.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02293, allocations: 0 / 289.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000366/0.02329, allocations: 96 kB / 289.4 MB, free: 0.6836 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.001155/0.02445, allocations: 482.3 kB / 289.9 MB, free: 416 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004462/0.02489, allocations: 290.6 kB / 290.1 MB, free: 120 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.361e-06/0.0249, allocations: 4 kB / 290.2 MB, free: 116 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.08961/0.1145, allocations: 183.8 kB / 290.3 MB, free: 26.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.1149, allocations: 85.36 kB / 290.4 MB, free: 26.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.1162, allocations: 0.8073 MB / 291.2 MB, free: 26.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.692e-05/0.1162, allocations: 107.9 kB / 291.3 MB, free: 26.04 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.1163, allocations: 34.95 kB / 291.4 MB, free: 26.03 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.1165, allocations: 109.3 kB / 291.5 MB, free: 25.99 MB / 266.7 MB Notification: Performance of SimCode: time 2.104e-06/0.1165, allocations: 0 / 291.5 MB, free: 25.99 MB / 266.7 MB Notification: Performance of Templates: time 0.01022/0.1267, allocations: 8.063 MB / 299.5 MB, free: 24.08 MB / 266.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 -s gbode -gbm=radauIIA3 -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: 2.835403040982783]