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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 104.2 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001139, allocations: 46.58 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1166, allocations: 49.44 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004628/0.1213, allocations: 2.447 MB / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.1227, allocations: 495.2 kB / 353.6 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003028/0.123, allocations: 8 kB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002901/0.1233, allocations: 47.52 kB / 353.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.1237, allocations: 83.27 kB / 353.8 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007261/0.1244, allocations: 195.6 kB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006732/0.1251, allocations: 491.1 kB / 354.5 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.1253, allocations: 72.58 kB / 354.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.1257, allocations: 211.4 kB / 354.7 MB, free: 400 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004233/0.1262, allocations: 235.2 kB / 355 MB, free: 164 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.736e-05/0.1263, allocations: 40 kB / 355 MB, free: 124 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.1265, allocations: 87.89 kB / 355.1 MB, free: 36 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.1267, allocations: 99.7 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002579/0.127, allocations: 175.2 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007686/0.1278, allocations: 470.8 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1278, allocations: 0 / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1278, allocations: 0 / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.1278, allocations: 0 / 355.8 MB, free: 15.3 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001532/0.1294, allocations: 0.6549 MB / 356.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.1294, allocations: 8.031 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.1296, allocations: 32.56 kB / 356.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.1299, allocations: 280.6 kB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/0.13, allocations: 24.94 kB / 356.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-05/0.1301, allocations: 40.27 kB / 356.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007419/0.1308, allocations: 373.2 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.1309, allocations: 4.188 kB / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.1309, allocations: 11.94 kB / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1309, allocations: 8 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008228/0.1318, allocations: 405.9 kB / 357.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.134, allocations: 1.127 MB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006589/0.1347, allocations: 295.5 kB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004038/0.1351, allocations: 197.4 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.101e-05/0.1352, allocations: 7.938 kB / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.1352, allocations: 38.56 kB / 359.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.525e-06/0.1352, allocations: 0 / 359.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005117/0.1403, allocations: 2.021 MB / 361.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1404, allocations: 59.41 kB / 361.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/0.1407, allocations: 240.8 kB / 361.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.1408, allocations: 45.7 kB / 361.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.1409, allocations: 148.8 kB / 361.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.141, allocations: 154 kB / 361.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.1412, allocations: 94.14 kB / 362 MB, free: 8.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1414, allocations: 342.8 kB / 362.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/0.1418, allocations: 209 kB / 362.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.1423, allocations: 284.8 kB / 362.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006866/0.143, allocations: 381.6 kB / 363.2 MB, free: 7.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.143, allocations: 0 / 363.2 MB, free: 7.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001487/0.1445, allocations: 0.7001 MB / 363.9 MB, free: 6.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.1445, allocations: 4 kB / 363.9 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1445, allocations: 4 kB / 363.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009951/0.1455, allocations: 489.5 kB / 364.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.1459, allocations: 79.84 kB / 364.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.1472, allocations: 1.394 MB / 365.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004647/0.1477, allocations: 67.91 kB / 365.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.012e-05/0.1477, allocations: 19.98 kB / 366 MB, free: 4.66 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 (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.0002531/0.148, allocations: 165.7 kB / 366.1 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1481, allocations: 35.56 kB / 366.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.1482, allocations: 47.3 kB / 366.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.1482, allocations: 4 kB / 366.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.1483, allocations: 0 / 366.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1483, allocations: 0 / 366.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.1511, allocations: 1.345 MB / 367.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.1512, allocations: 4 kB / 367.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.1514, allocations: 64.06 kB / 367.6 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008512/0.1523, allocations: 469.4 kB / 368.1 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.857e-05/0.1524, allocations: 19.98 kB / 368.1 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.1536, allocations: 1.339 MB / 369.4 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.1536, allocations: 4.031 kB / 369.4 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.1556, allocations: 0.939 MB / 370.4 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2169/0.3724, allocations: 149.1 kB / 370.5 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3726, allocations: 19.61 kB / 370.5 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/0.373, allocations: 41.34 kB / 370.6 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.3732, allocations: 84.44 kB / 370.7 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.818e-05/0.3733, allocations: 23.2 kB / 370.7 MB, free: 26.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.3735, allocations: 167.4 kB / 370.9 MB, free: 26.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3735, allocations: 0 / 370.9 MB, free: 26.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005684/0.3741, allocations: 109.2 kB / 371 MB, free: 26.14 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002415/0.3743, allocations: 133.6 kB / 371.1 MB, free: 26.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.3755, allocations: 0.5385 MB / 371.6 MB, free: 26.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3755, allocations: 1 kB / 371.6 MB, free: 26.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000648/0.3762, allocations: 291.4 kB / 371.9 MB, free: 26.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.3767, allocations: 52.8 kB / 372 MB, free: 26.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.379, allocations: 0.9992 MB / 373 MB, free: 25.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3792, allocations: 0.7781 MB / 373.7 MB, free: 24.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.3794, allocations: 38.19 kB / 373.8 MB, free: 24.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3794, allocations: 0.5312 kB / 373.8 MB, free: 24.91 MB / 302.1 MB Notification: Performance of Templates: time 0.01013/0.3895, allocations: 6.632 MB / 380.4 MB, free: 23.57 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches