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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=4000,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=4000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009093/0.0009094, allocations: 95.86 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 195.4 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.7 MB / 246.4 MB, free: 9.738 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002243, allocations: 4 kB / 307.1 MB, free: 0.9844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.09187, allocations: 51.51 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002796/0.09472, allocations: 2.17 MB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.09578, allocations: 0.5618 MB / 361.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.09596, allocations: 8 kB / 361.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002813/0.09625, allocations: 47.69 kB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.09656, allocations: 119.3 kB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.09688, allocations: 123.8 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00053/0.09742, allocations: 451.1 kB / 362.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.09759, allocations: 52.7 kB / 362.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.09785, allocations: 203.3 kB / 362.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.09816, allocations: 235.2 kB / 362.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.617e-05/0.09822, allocations: 20 kB / 362.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.09839, allocations: 63.98 kB / 362.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.09853, allocations: 87.7 kB / 362.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.089e-05/0.09862, allocations: 81.52 kB / 362.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003677/0.09899, allocations: 375.2 kB / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.099, allocations: 0 / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09901, allocations: 0 / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.09902, allocations: 0 / 363.2 MB, free: 8.883 MB / 302.1 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.00112/0.1001, allocations: 0.6549 MB / 363.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.1002, allocations: 12.03 kB / 363.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.96e-05/0.1003, allocations: 35.53 kB / 363.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.1006, allocations: 294.3 kB / 364.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.1007, allocations: 28.66 kB / 364.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.1008, allocations: 28 kB / 364.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006927/0.1015, allocations: 381.8 kB / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1015, allocations: 0 / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.1015, allocations: 16 kB / 364.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.1015, allocations: 4 kB / 364.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007737/0.1023, allocations: 390.3 kB / 365 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1043, allocations: 1.159 MB / 366.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005721/0.1049, allocations: 322.7 kB / 366.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/0.1052, allocations: 197.5 kB / 366.7 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.387e-05/0.1053, allocations: 11.94 kB / 366.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.553e-05/0.1053, allocations: 42.52 kB / 366.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.433e-06/0.1054, allocations: 0 / 366.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004334/0.1097, allocations: 2.085 MB / 368.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.1097, allocations: 59.84 kB / 368.9 MB, free: 2.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.11, allocations: 256.9 kB / 369.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.803e-05/0.1101, allocations: 41.7 kB / 369.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.008e-05/0.1102, allocations: 152.8 kB / 369.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.1103, allocations: 165.8 kB / 369.5 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.1103, allocations: 12 kB / 369.5 MB, free: 2.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1105, allocations: 342.8 kB / 369.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.1108, allocations: 193 kB / 370 MB, free: 1.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.1113, allocations: 272.8 kB / 370.3 MB, free: 1.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.1116, allocations: 152.8 kB / 370.4 MB, free: 1.242 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1116, allocations: 0 / 370.4 MB, free: 1.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001141/0.1127, allocations: 0.6066 MB / 371 MB, free: 0.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1128, allocations: 8 kB / 371 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1128, allocations: 0 / 371 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007024/0.1135, allocations: 345.6 kB / 371.4 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.1138, allocations: 67.91 kB / 371.4 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1558/0.2696, allocations: 1.363 MB / 372.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/0.2701, allocations: 93.69 kB / 372.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.2702, allocations: 24.91 kB / 372.9 MB, free: 18.02 MB / 302.1 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.000211/0.2704, allocations: 168.5 kB / 373.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/0.2705, allocations: 30.27 kB / 373.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001201/0.2706, allocations: 50.73 kB / 373.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.2706, allocations: 6.609 kB / 373.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.2706, allocations: 3.844 kB / 373.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.2706, allocations: 2.391 kB / 373.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.2732, allocations: 1.384 MB / 374.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.2733, allocations: 1.344 kB / 374.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.2735, allocations: 60.92 kB / 374.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005986/0.2741, allocations: 309.2 kB / 374.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.438e-05/0.2742, allocations: 20.05 kB / 374.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008747/0.2751, allocations: 1.32 MB / 376.2 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.2751, allocations: 5.469 kB / 376.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.2769, allocations: 0.9109 MB / 377.2 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.2771, allocations: 166.6 kB / 377.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.2772, allocations: 16.78 kB / 377.3 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.2775, allocations: 51.02 kB / 377.4 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.2777, allocations: 106.1 kB / 377.5 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.075e-05/0.2777, allocations: 26.28 kB / 377.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.2779, allocations: 177.7 kB / 377.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2779, allocations: 0 / 377.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004075/0.2783, allocations: 99.3 kB / 377.8 MB, free: 15.87 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007684/0.2791, allocations: 391.6 kB / 378.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009381/0.28, allocations: 0.4883 MB / 378.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.28, allocations: 1.375 kB / 378.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005606/0.2806, allocations: 291.1 kB / 379 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.2811, allocations: 63.22 kB / 379 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.2832, allocations: 1.247 MB / 380.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.2835, allocations: 0.7987 MB / 381.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.2837, allocations: 37.8 kB / 381.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.202e-05/0.2838, allocations: 31 kB / 381.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2838, allocations: 0 / 381.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01223/0.296, allocations: 7.79 MB / 388.9 MB, free: 11.59 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches