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.001101/0.001101, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.00115, allocations: 60.94 kB / 306.3 MB, free: 1.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09361/0.09477, allocations: 50.54 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004248/0.09907, allocations: 2.609 MB / 359.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1003, allocations: 0.5888 MB / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.1005, allocations: 4 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.1008, allocations: 47.69 kB / 360 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003132/0.1012, allocations: 119.3 kB / 360.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.1015, allocations: 143.8 kB / 360.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005104/0.102, allocations: 491.1 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.1022, allocations: 64.7 kB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003/0.1025, allocations: 211.2 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.1028, allocations: 239.1 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.174e-05/0.1029, allocations: 20 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.1031, allocations: 83.91 kB / 361.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.1032, allocations: 95.69 kB / 361.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.1034, allocations: 179.1 kB / 361.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004847/0.1039, allocations: 490.7 kB / 362.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1039, allocations: 0 / 362.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1039, allocations: 0 / 362.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.104, allocations: 0 / 362.1 MB, free: 9.184 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.001375/0.1053, allocations: 0.6978 MB / 362.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.1054, allocations: 8.031 kB / 362.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.1055, allocations: 40.47 kB / 362.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003901/0.1059, allocations: 299.5 kB / 363.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.1059, allocations: 21.03 kB / 363.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-05/0.106, allocations: 36.28 kB / 363.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007904/0.1068, allocations: 382.4 kB / 363.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.1068, allocations: 192 / 363.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/0.1069, allocations: 15.94 kB / 363.6 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.1069, allocations: 8 kB / 363.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008573/0.1078, allocations: 394.3 kB / 364 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.1098, allocations: 1.127 MB / 365.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006033/0.1105, allocations: 326.6 kB / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003741/0.1108, allocations: 189.5 kB / 365.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.854e-05/0.1109, allocations: 11.94 kB / 365.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.111, allocations: 38.5 kB / 365.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.643e-06/0.111, allocations: 4 kB / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004678/0.1156, allocations: 1.995 MB / 367.7 MB, free: 3.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.1157, allocations: 59.84 kB / 367.7 MB, free: 3.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.116, allocations: 252.9 kB / 368 MB, free: 2.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.116, allocations: 45.69 kB / 368 MB, free: 2.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.212e-05/0.1161, allocations: 152.8 kB / 368.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.1163, allocations: 161.8 kB / 368.3 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.1165, allocations: 98.14 kB / 368.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1166, allocations: 342.8 kB / 368.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.117, allocations: 193 kB / 369 MB, free: 1.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/0.1174, allocations: 268.8 kB / 369.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000629/0.1181, allocations: 357.6 kB / 369.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1181, allocations: 3.938 kB / 369.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001199/0.1193, allocations: 0.6184 MB / 370.2 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1193, allocations: 8 kB / 370.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1193, allocations: 0 / 370.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007488/0.1201, allocations: 341.7 kB / 370.5 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/0.1204, allocations: 71.84 kB / 370.6 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1525/0.2729, allocations: 1.355 MB / 372 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005048/0.2735, allocations: 77.86 kB / 372 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.2735, allocations: 19.16 kB / 372.1 MB, free: 19.25 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 (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.0002124/0.2737, allocations: 158.4 kB / 372.2 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.786e-05/0.2738, allocations: 34.86 kB / 372.2 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.274, allocations: 50.2 kB / 372.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.274, allocations: 5.562 kB / 372.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.274, allocations: 8.688 kB / 372.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.274, allocations: 3.484 kB / 372.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.2767, allocations: 1.339 MB / 373.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2768, allocations: 1.312 kB / 373.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.277, allocations: 61.97 kB / 373.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006184/0.2777, allocations: 315.9 kB / 374 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.2777, allocations: 18.95 kB / 374 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009759/0.2787, allocations: 1.315 MB / 375.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.2787, allocations: 2.406 kB / 375.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.2805, allocations: 0.9211 MB / 376.3 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.2806, allocations: 158.8 kB / 376.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.071e-05/0.2807, allocations: 15.62 kB / 376.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.281, allocations: 42.81 kB / 376.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.2812, allocations: 89.31 kB / 376.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.437e-05/0.2813, allocations: 25.91 kB / 376.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001549/0.2814, allocations: 182.8 kB / 376.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2815, allocations: 0 / 376.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004032/0.2819, allocations: 99.7 kB / 376.9 MB, free: 16.81 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 (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.0007566/0.2826, allocations: 380.9 kB / 377.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009727/0.2836, allocations: 0.4904 MB / 377.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2836, allocations: 0 / 377.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005897/0.2842, allocations: 289.7 kB / 378 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/0.2847, allocations: 60.7 kB / 378.1 MB, free: 16.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.2874, allocations: 1.157 MB / 379.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.2876, allocations: 0.7911 MB / 380 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001548/0.2878, allocations: 48.05 kB / 380.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.661e-05/0.2879, allocations: 34.67 kB / 380.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2879, allocations: 0 / 380.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01378/0.3017, allocations: 8.107 MB / 388.2 MB, free: 12.49 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