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.0008088/0.0008088, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003405/0.003405, allocations: 160 kB / 24.7 MB, free: 8.895 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.8662/0.8662, allocations: 177.1 MB / 205 MB, free: 5.727 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.913e-06/1.913e-06, allocations: 4 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.602e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002349/0.002365, allocations: 2.434 MB / 328.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006734/0.003039, allocations: 0.5733 MB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.537e-05/0.003134, allocations: 7.938 kB / 328.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.003363, allocations: 75.36 kB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.003587, allocations: 131 kB / 329 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.003792, allocations: 175.6 kB / 329.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000336/0.004128, allocations: 0.5263 MB / 329.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.004247, allocations: 45.5 kB / 329.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.004475, allocations: 311.5 kB / 330.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/0.004692, allocations: 215.5 kB / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.169e-05/0.004743, allocations: 40 kB / 330.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.004852, allocations: 87.92 kB / 330.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.004958, allocations: 115.7 kB / 330.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.982e-05/0.005058, allocations: 143.6 kB / 330.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004104/0.005468, allocations: 0.5452 MB / 331.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.005476, allocations: 4 kB / 331.2 MB, free: 10 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.005476, allocations: 0 / 331.2 MB, free: 10 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.005482, allocations: 7.938 kB / 331.2 MB, free: 9.996 MB / 298.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.0007952/0.006277, allocations: 0.6325 MB / 331.9 MB, free: 9.332 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.006309, allocations: 12.03 kB / 331.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.054e-05/0.006379, allocations: 40.7 kB / 331.9 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002828/0.006662, allocations: 237.1 kB / 332.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.006688, allocations: 25.03 kB / 332.2 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.006733, allocations: 32.36 kB / 332.2 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.007181, allocations: 378.4 kB / 332.6 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.007195, allocations: 4.141 kB / 332.6 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.007222, allocations: 16.38 kB / 332.6 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.007229, allocations: 4.375 kB / 332.6 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004913/0.00772, allocations: 390.3 kB / 333 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.008914, allocations: 0.9486 MB / 333.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003997/0.009313, allocations: 329.3 kB / 334.2 MB, free: 6.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.00953, allocations: 172.8 kB / 334.4 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.009562, allocations: 8 kB / 334.4 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.009581, allocations: 30.56 kB / 334.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.363e-06/0.009583, allocations: 0 / 334.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002644/0.01223, allocations: 1.706 MB / 336.2 MB, free: 4.863 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.01226, allocations: 59.84 kB / 336.2 MB, free: 4.793 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.01245, allocations: 249.7 kB / 336.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.648e-05/0.01248, allocations: 45.69 kB / 336.5 MB, free: 4.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.527e-05/0.01256, allocations: 160.9 kB / 336.7 MB, free: 4.324 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.778e-05/0.01265, allocations: 170.6 kB / 336.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.01275, allocations: 98.28 kB / 336.9 MB, free: 4.055 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.086e-05/0.01283, allocations: 334.8 kB / 337.2 MB, free: 3.719 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.01307, allocations: 197.2 kB / 337.4 MB, free: 3.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.01333, allocations: 265.8 kB / 337.7 MB, free: 3.242 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.01372, allocations: 366.6 kB / 338.1 MB, free: 2.863 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.01372, allocations: 0 / 338.1 MB, free: 2.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000715/0.01444, allocations: 0.6005 MB / 338.7 MB, free: 2.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.01445, allocations: 7.938 kB / 338.7 MB, free: 2.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.01446, allocations: 4 kB / 338.7 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000451/0.01491, allocations: 341.6 kB / 339 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.01506, allocations: 71.91 kB / 339.1 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007996/0.01586, allocations: 1.366 MB / 340.4 MB, free: 412 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.01606, allocations: 68.05 kB / 340.5 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.01608, allocations: 19.98 kB / 340.5 MB, free: 324 kB / 298.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.00012/0.0162, allocations: 157.7 kB / 340.7 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.01625, allocations: 35.81 kB / 340.7 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.0163, allocations: 59.59 kB / 340.8 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.01631, allocations: 4 kB / 340.8 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.01631, allocations: 3.938 kB / 340.8 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.01632, allocations: 7.922 kB / 340.8 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.01783, allocations: 1.192 MB / 342 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.01784, allocations: 0 / 342 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.01798, allocations: 59.91 kB / 342 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000357/0.01834, allocations: 301.7 kB / 342.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.01836, allocations: 19.98 kB / 342.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000726/0.01909, allocations: 1.312 MB / 343.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.01909, allocations: 0 / 343.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.02011, allocations: 0.9164 MB / 344.6 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.02022, allocations: 79.78 kB / 344.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.02027, allocations: 12 kB / 344.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.02041, allocations: 39.95 kB / 344.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.02054, allocations: 87.81 kB / 344.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.02057, allocations: 23.92 kB / 344.8 MB, free: 11.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.02067, allocations: 181.2 kB / 345 MB, free: 11.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02067, allocations: 0 / 345 MB, free: 11.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002625/0.02094, allocations: 99.94 kB / 345.1 MB, free: 11.59 MB / 314.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.0006545/0.02159, allocations: 422.2 kB / 345.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006464/0.02224, allocations: 470 kB / 346 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.02224, allocations: 0 / 346 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003428/0.02258, allocations: 279.6 kB / 346.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.02291, allocations: 64.41 kB / 346.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.02429, allocations: 0.97 MB / 347.3 MB, free: 9.512 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.0244, allocations: 185.6 kB / 347.4 MB, free: 9.305 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.02447, allocations: 40.48 kB / 347.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02447, allocations: 0 / 347.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of Templates: time 0.005934/0.03041, allocations: 7.219 MB / 354.7 MB, free: 2.035 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.1405993876978755]