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.001078/0.001078, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001091/0.001091, allocations: 145.5 kB / 24.54 MB, free: 36 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 0.941/0.941, allocations: 173.4 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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 1.252e-06/1.252e-06, allocations: 0 / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.755e-05/1.881e-05, allocations: 2.312 kB / 268 MB, free: 6.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002483/0.002502, allocations: 2.454 MB / 270.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007497/0.003252, allocations: 499.2 kB / 270.9 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.951e-05/0.003351, allocations: 4 kB / 270.9 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.003553, allocations: 55.45 kB / 271 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.003704, allocations: 87.27 kB / 271.1 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.004206, allocations: 207.5 kB / 271.3 MB, free: 3.168 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.004544, allocations: 498.8 kB / 271.7 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.004665, allocations: 44.91 kB / 271.8 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.004906, allocations: 291.5 kB / 272.1 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.005114, allocations: 203.5 kB / 272.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.005158, allocations: 36 kB / 272.3 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.005283, allocations: 91.88 kB / 272.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.831e-05/0.005361, allocations: 95.7 kB / 272.5 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.243e-05/0.005453, allocations: 143.7 kB / 272.6 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003298/0.005783, allocations: 370.8 kB / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.005785, allocations: 0 / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.005786, allocations: 0 / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.319e-06/0.00579, allocations: 0 / 273 MB, free: 1.426 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.000698/0.006488, allocations: 0.6752 MB / 273.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.006523, allocations: 8.922 kB / 273.7 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.853e-05/0.006611, allocations: 60.75 kB / 273.7 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.006887, allocations: 236.9 kB / 274 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.006913, allocations: 25.02 kB / 274 MB, free: 372 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.006956, allocations: 24.38 kB / 274 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004155/0.007372, allocations: 331.2 kB / 274.3 MB, free: 8 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.007389, allocations: 4.141 kB / 274.3 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.007438, allocations: 12.45 kB / 274.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.007453, allocations: 12.36 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000423/0.007876, allocations: 279.6 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.008915, allocations: 0.9324 MB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.009194, allocations: 216.6 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.009349, allocations: 128.6 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.009376, allocations: 12 kB / 275.9 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.009397, allocations: 41.33 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.463e-06/0.009398, allocations: 0 / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002171/0.01157, allocations: 1.47 MB / 277.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.0116, allocations: 55.41 kB / 277.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.01175, allocations: 280.2 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.01178, allocations: 45.69 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.02e-05/0.01185, allocations: 199.8 kB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.143e-05/0.01193, allocations: 154.7 kB / 278.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.01203, allocations: 99.78 kB / 278.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.01214, allocations: 0.5079 MB / 278.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.01233, allocations: 144.9 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.01255, allocations: 246.8 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.01285, allocations: 313.4 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01285, allocations: 0 / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007274/0.01358, allocations: 0.5862 MB / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.01359, allocations: 4 kB / 280 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.0136, allocations: 4 kB / 280 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005072/0.0141, allocations: 435.1 kB / 280.5 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.01426, allocations: 71.84 kB / 280.5 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008077/0.01507, allocations: 1.799 MB / 282.3 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/0.01523, allocations: 48 kB / 282.4 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.01526, allocations: 20 kB / 282.4 MB, free: 7.566 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.0001246/0.01538, allocations: 192.2 kB / 282.6 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.005e-05/0.01544, allocations: 47.81 kB / 282.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.239e-05/0.01549, allocations: 43.31 kB / 282.7 MB, free: 7.273 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.0155, allocations: 7.938 kB / 282.7 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.0155, allocations: 0 / 282.7 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.01551, allocations: 7.984 kB / 282.7 MB, free: 7.258 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.01686, allocations: 1.137 MB / 283.8 MB, free: 6.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.01686, allocations: 3.984 kB / 283.8 MB, free: 6.047 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.017, allocations: 55.92 kB / 283.9 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003965/0.0174, allocations: 419.2 kB / 284.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.01743, allocations: 15.98 kB / 284.3 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007343/0.01816, allocations: 1.795 MB / 286.1 MB, free: 3.699 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.01816, allocations: 4 kB / 286.1 MB, free: 3.695 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008844/0.01905, allocations: 0.8393 MB / 287 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.656e-05/0.01914, allocations: 75.75 kB / 287 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.435e-05/0.01919, allocations: 19.98 kB / 287 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.0193, allocations: 23.98 kB / 287.1 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.01942, allocations: 95.69 kB / 287.2 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-05/0.01945, allocations: 19.98 kB / 287.2 MB, free: 2.578 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.315e-05/0.01954, allocations: 197.1 kB / 287.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01954, allocations: 0 / 287.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002543/0.01979, allocations: 100 kB / 287.5 MB, free: 2.289 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.0001474/0.01994, allocations: 151.1 kB / 287.6 MB, free: 2.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005343/0.02047, allocations: 401.5 kB / 288 MB, free: 1.734 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.02048, allocations: 4 kB / 288 MB, free: 1.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.02073, allocations: 241.8 kB / 288.3 MB, free: 1.492 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.02102, allocations: 79.41 kB / 288.3 MB, free: 1.418 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.02211, allocations: 0.833 MB / 289.2 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.18e-05/0.02216, allocations: 97.28 kB / 289.3 MB, free: 428 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.192e-05/0.02224, allocations: 38.97 kB / 289.3 MB, free: 392 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.06e-05/0.0223, allocations: 32.48 kB / 289.3 MB, free: 360 kB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0223, allocations: 4 kB / 289.3 MB, free: 356 kB / 266.7 MB Notification: Performance of Templates: time 0.1084/0.1307, allocations: 7.963 MB / 297.3 MB, free: 29.09 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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","",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.9164451747201383]