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.001081/0.001081, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 58.2 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09749/0.09869, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003694/0.1024, allocations: 2.575 MB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.1034, allocations: 0.5888 MB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1035, allocations: 4 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.1038, allocations: 71.36 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.1041, allocations: 135.1 kB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.1044, allocations: 155.7 kB / 362.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004616/0.1049, allocations: 0.5108 MB / 362.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.105, allocations: 68.69 kB / 363 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.1053, allocations: 227.3 kB / 363.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.1056, allocations: 255.1 kB / 363.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.657e-05/0.1057, allocations: 40 kB / 363.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.1058, allocations: 91.98 kB / 363.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.106, allocations: 115.7 kB / 363.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.1061, allocations: 203 kB / 363.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000475/0.1066, allocations: 0.5023 MB / 364.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1066, allocations: 0 / 364.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1067, allocations: 4 kB / 364.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1067, allocations: 0 / 364.4 MB, free: 7.832 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.001204/0.1079, allocations: 0.6939 MB / 365.1 MB, free: 7.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.1079, allocations: 12.03 kB / 365.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.413e-05/0.108, allocations: 36.47 kB / 365.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.1084, allocations: 299.5 kB / 365.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.1085, allocations: 25.03 kB / 365.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/0.1086, allocations: 36.28 kB / 365.5 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007074/0.1093, allocations: 378.5 kB / 365.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1093, allocations: 192 / 365.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.1093, allocations: 19.94 kB / 365.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1094, allocations: 11.98 kB / 365.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008197/0.1102, allocations: 382.4 kB / 366.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.1121, allocations: 1.127 MB / 367.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005965/0.1127, allocations: 332.2 kB / 367.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003652/0.1131, allocations: 196.8 kB / 367.9 MB, free: 4.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.882e-05/0.1132, allocations: 7.938 kB / 367.9 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.1132, allocations: 34.56 kB / 367.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.1132, allocations: 0 / 367.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004446/0.1177, allocations: 2.007 MB / 370 MB, free: 1.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.1177, allocations: 55.84 kB / 370 MB, free: 1.875 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.118, allocations: 256.9 kB / 370.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.982e-05/0.1181, allocations: 37.7 kB / 370.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1182, allocations: 156.8 kB / 370.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.1183, allocations: 165.8 kB / 370.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.1185, allocations: 94.14 kB / 370.7 MB, free: 1.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1186, allocations: 342.8 kB / 371 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.119, allocations: 197 kB / 371.2 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.1194, allocations: 260.8 kB / 371.5 MB, free: 336 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1506/0.27, allocations: 358.7 kB / 371.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.2701, allocations: 0.9688 kB / 371.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001677/0.2718, allocations: 0.6126 MB / 372.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.2718, allocations: 6.156 kB / 372.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.2718, allocations: 2.781 kB / 372.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007509/0.2726, allocations: 347.7 kB / 372.8 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.2729, allocations: 68.72 kB / 372.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.2739, allocations: 1.366 MB / 374.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.2744, allocations: 70.73 kB / 374.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.2744, allocations: 21.7 kB / 374.3 MB, free: 18.95 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.0002021/0.2746, allocations: 171.9 kB / 374.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.89e-05/0.2747, allocations: 32.08 kB / 374.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.2749, allocations: 51.41 kB / 374.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.2749, allocations: 5.406 kB / 374.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.2749, allocations: 1.125 kB / 374.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.2749, allocations: 4.469 kB / 374.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/0.2777, allocations: 1.338 MB / 375.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2777, allocations: 1.281 kB / 375.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.278, allocations: 59.06 kB / 376 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005772/0.2785, allocations: 308.2 kB / 376.3 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.2786, allocations: 24.81 kB / 376.3 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009485/0.2796, allocations: 1.309 MB / 377.6 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.2796, allocations: 8.891 kB / 377.6 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.2812, allocations: 0.9083 MB / 378.5 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.2814, allocations: 158.9 kB / 378.7 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.894e-05/0.2815, allocations: 19.67 kB / 378.7 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.2818, allocations: 38.64 kB / 378.7 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.282, allocations: 91.05 kB / 378.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/0.282, allocations: 24.16 kB / 378.9 MB, free: 16.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001573/0.2822, allocations: 188.8 kB / 379 MB, free: 16.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2822, allocations: 0 / 379 MB, free: 16.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004486/0.2827, allocations: 102.9 kB / 379.1 MB, free: 16.11 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.0007881/0.2834, allocations: 386.3 kB / 379.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009781/0.2844, allocations: 0.4975 MB / 380 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2845, allocations: 0 / 380 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005688/0.285, allocations: 287.1 kB / 380.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005231/0.2856, allocations: 61.77 kB / 380.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.2877, allocations: 1.046 MB / 381.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.288, allocations: 0.7863 MB / 382.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.2881, allocations: 37.22 kB / 382.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.18e-05/0.2882, allocations: 36.53 kB / 382.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2882, allocations: 4 kB / 382.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of Templates: time 0.01293/0.3011, allocations: 8.589 MB / 390.9 MB, free: 11.51 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches