Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001138/0.001138, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.001099/0.001099, allocations: 186.9 kB / 19.28 MB, free: 3.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.1 MB / 225.1 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 56.41 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07641/0.07758, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003866/0.08148, allocations: 2.431 MB / 331.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009315/0.08243, allocations: 0.4961 MB / 331.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.08255, allocations: 4 kB / 331.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.08279, allocations: 51.52 kB / 331.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.08295, allocations: 79.27 kB / 331.8 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004299/0.08339, allocations: 195.7 kB / 332 MB, free: 492 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004392/0.08384, allocations: 495.1 kB / 332.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.084, allocations: 72.61 kB / 332.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.08421, allocations: 211.3 kB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.08449, allocations: 235.2 kB / 333 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.08455, allocations: 40 kB / 333 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.08471, allocations: 83.95 kB / 333.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.08484, allocations: 103.7 kB / 333.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.08501, allocations: 179.2 kB / 333.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004783/0.08549, allocations: 466.5 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.08551, allocations: 0 / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.08552, allocations: 4 kB / 333.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.08553, allocations: 4 kB / 333.8 MB, free: 14.63 MB / 286.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.001265/0.08681, allocations: 0.6626 MB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.08685, allocations: 12.03 kB / 334.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.519e-05/0.08695, allocations: 36.47 kB / 334.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.08733, allocations: 280.7 kB / 334.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/0.08738, allocations: 20.94 kB / 334.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.756e-05/0.08745, allocations: 32.31 kB / 334.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006648/0.08812, allocations: 377.2 kB / 335.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.08815, allocations: 8.094 kB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.149e-05/0.0882, allocations: 19.94 kB / 335.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.08822, allocations: 8 kB / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007627/0.08898, allocations: 398 kB / 335.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.09085, allocations: 1.108 MB / 336.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005212/0.09138, allocations: 295.5 kB / 337 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000344/0.09174, allocations: 193.8 kB / 337.2 MB, free: 11.03 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-05/0.09181, allocations: 11.94 kB / 337.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.09185, allocations: 42.5 kB / 337.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.733e-06/0.09185, allocations: 3.938 kB / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.00428/0.09614, allocations: 2.029 MB / 339.3 MB, free: 8.801 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.09619, allocations: 55.41 kB / 339.4 MB, free: 8.734 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.09641, allocations: 229 kB / 339.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.09647, allocations: 45.69 kB / 339.6 MB, free: 8.449 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.09657, allocations: 152.7 kB / 339.8 MB, free: 8.293 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.09669, allocations: 150 kB / 339.9 MB, free: 8.145 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.09686, allocations: 102.1 kB / 340 MB, free: 8.039 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.09698, allocations: 346.7 kB / 340.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.09737, allocations: 205 kB / 340.6 MB, free: 7.492 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004212/0.0978, allocations: 292.8 kB / 340.9 MB, free: 7.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006014/0.09841, allocations: 377.7 kB / 341.2 MB, free: 6.785 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.09842, allocations: 0 / 341.2 MB, free: 6.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001397/0.09982, allocations: 0.6885 MB / 341.9 MB, free: 6.082 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.09985, allocations: 12.16 kB / 341.9 MB, free: 6.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.09987, allocations: 0 / 341.9 MB, free: 6.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008115/0.1007, allocations: 0.4935 MB / 342.4 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.101, allocations: 71.91 kB / 342.5 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.1022, allocations: 1.39 MB / 343.9 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.1026, allocations: 67.94 kB / 343.9 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.577e-05/0.1026, allocations: 20 kB / 344 MB, free: 3.973 MB / 286.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.0001869/0.1028, allocations: 157.7 kB / 344.1 MB, free: 3.809 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.55e-05/0.1029, allocations: 43.55 kB / 344.2 MB, free: 3.766 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.103, allocations: 51.3 kB / 344.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.103, allocations: 7.938 kB / 344.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.103, allocations: 0 / 344.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.103, allocations: 0 / 344.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.1056, allocations: 1.338 MB / 345.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1056, allocations: 4 kB / 345.6 MB, free: 2.293 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.1059, allocations: 59.91 kB / 345.6 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006946/0.1066, allocations: 469.5 kB / 346.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.1067, allocations: 15.98 kB / 346.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.1078, allocations: 1.347 MB / 347.4 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1078, allocations: 0 / 347.4 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.1095, allocations: 0.9445 MB / 348.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.1097, allocations: 152.7 kB / 348.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.45e-05/0.1098, allocations: 23.92 kB / 348.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.1101, allocations: 31.97 kB / 348.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.1103, allocations: 87.8 kB / 348.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.149e-05/0.1103, allocations: 23.97 kB / 348.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.1105, allocations: 176.4 kB / 348.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1105, allocations: 0 / 348.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004278/0.1109, allocations: 104 kB / 349 MB, free: 14.76 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.0001988/0.1111, allocations: 143.1 kB / 349.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009959/0.1121, allocations: 0.5063 MB / 349.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1121, allocations: 0 / 349.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006051/0.1127, allocations: 299.9 kB / 349.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.1132, allocations: 56.34 kB / 350 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.1153, allocations: 0.9576 MB / 350.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1157, allocations: 0.7839 MB / 351.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.1158, allocations: 34.97 kB / 351.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.886e-05/0.1159, allocations: 31.44 kB / 351.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1159, allocations: 0 / 351.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01277/0.1286, allocations: 8.708 MB / 360.5 MB, free: 3.168 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches