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.001009/0.001009, allocations: 93.09 kB / 16.65 MB, free: 6.59 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.0009754/0.0009761, allocations: 184.1 kB / 17.56 MB, free: 6.203 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.389/1.389, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002812, allocations: 7.938 kB / 301.4 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1056, allocations: 50.41 MB / 351.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002918/0.1086, allocations: 2.11 MB / 353.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.1097, allocations: 0.4993 MB / 354.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.1098, allocations: 7.938 kB / 354.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.11, allocations: 35.75 kB / 354.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.1102, allocations: 71.45 kB / 354.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.1106, allocations: 167.8 kB / 354.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000485/0.1111, allocations: 463.1 kB / 355.2 MB, free: 376 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1113, allocations: 60.56 kB / 355.2 MB, free: 312 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.1116, allocations: 191.3 kB / 355.4 MB, free: 120 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.1119, allocations: 219.2 kB / 355.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.211e-05/0.112, allocations: 20 kB / 355.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.1122, allocations: 63.95 kB / 355.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.1123, allocations: 83.7 kB / 355.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.1125, allocations: 184.9 kB / 356 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005423/0.1131, allocations: 438.6 kB / 356.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1131, allocations: 0 / 356.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.658e-06/0.1131, allocations: 0 / 356.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.006e-06/0.1131, allocations: 3.938 kB / 356.4 MB, free: 15.12 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.001211/0.1143, allocations: 0.6238 MB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.1144, allocations: 12.03 kB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.958e-05/0.1145, allocations: 32.56 kB / 357.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.1148, allocations: 284.5 kB / 357.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/0.1148, allocations: 20.94 kB / 357.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.877e-05/0.1149, allocations: 32.38 kB / 357.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006956/0.1156, allocations: 381.2 kB / 357.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.1156, allocations: 192 / 357.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.261e-05/0.1157, allocations: 11.94 kB / 357.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.1157, allocations: 8 kB / 357.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007568/0.1165, allocations: 410 kB / 358.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.1185, allocations: 1.154 MB / 359.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005382/0.119, allocations: 292.5 kB / 359.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003722/0.1194, allocations: 205.7 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.1195, allocations: 4 kB / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.1195, allocations: 42.5 kB / 359.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.473e-06/0.1195, allocations: 0 / 359.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004689/0.1242, allocations: 2.107 MB / 362 MB, free: 9.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.1242, allocations: 55.41 kB / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.1245, allocations: 240.8 kB / 362.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.291e-05/0.1246, allocations: 45.64 kB / 362.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1247, allocations: 156.8 kB / 362.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.1248, allocations: 153.9 kB / 362.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.581e-05/0.1249, allocations: 49.69 kB / 362.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.125, allocations: 338.8 kB / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004046/0.1255, allocations: 217 kB / 363.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004523/0.1259, allocations: 280.8 kB / 363.5 MB, free: 7.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006459/0.1266, allocations: 389.7 kB / 363.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1266, allocations: 0 / 363.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001474/0.1281, allocations: 0.6886 MB / 364.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.1281, allocations: 4 kB / 364.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.1281, allocations: 7.938 kB / 364.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009285/0.129, allocations: 493.5 kB / 365 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1293, allocations: 71.91 kB / 365.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.1306, allocations: 1.401 MB / 366.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004666/0.1311, allocations: 100 kB / 366.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.1312, allocations: 16 kB / 366.6 MB, free: 4.391 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.0002302/0.1314, allocations: 169.6 kB / 366.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.1315, allocations: 39.55 kB / 366.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.1316, allocations: 47.31 kB / 366.9 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.1317, allocations: 4.062 kB / 366.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.1317, allocations: 4 kB / 366.9 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.1317, allocations: 3.984 kB / 366.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.1345, allocations: 1.38 MB / 368.3 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.1346, allocations: 4 kB / 368.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.1348, allocations: 59.91 kB / 368.3 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007337/0.1356, allocations: 461.5 kB / 368.8 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.1356, allocations: 23.97 kB / 368.8 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.1368, allocations: 1.339 MB / 370.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.1368, allocations: 3.984 kB / 370.2 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2203/0.3571, allocations: 0.9327 MB / 371.1 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002364/0.3573, allocations: 152.2 kB / 371.2 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.844e-05/0.3574, allocations: 17.69 kB / 371.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003409/0.3578, allocations: 52.8 kB / 371.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.358, allocations: 87.38 kB / 371.4 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.206e-05/0.3581, allocations: 21.8 kB / 371.4 MB, free: 24.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001842/0.3583, allocations: 172.4 kB / 371.6 MB, free: 24.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3583, allocations: 0 / 371.6 MB, free: 24.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004867/0.3588, allocations: 102.7 kB / 371.7 MB, free: 24.9 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.0002233/0.359, allocations: 148.6 kB / 371.8 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.3601, allocations: 0.5143 MB / 372.3 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3601, allocations: 1.031 kB / 372.3 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005848/0.3607, allocations: 297.2 kB / 372.6 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.3612, allocations: 55.97 kB / 372.7 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.3635, allocations: 1.203 MB / 373.9 MB, free: 24.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.3638, allocations: 0.7821 MB / 374.7 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3639, allocations: 32.69 kB / 374.7 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.98e-05/0.364, allocations: 30.78 kB / 374.7 MB, free: 23.52 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.364, allocations: 1.688 kB / 374.7 MB, free: 23.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01417/0.3782, allocations: 8.117 MB / 382.8 MB, free: 21.41 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/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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches