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.001498/0.001498, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001128/0.001128, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.362/1.362, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001216/0.001216, allocations: 43.94 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09356, allocations: 46.64 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003881/0.09748, allocations: 2.419 MB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.09857, allocations: 0.5039 MB / 331.6 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.09872, allocations: 4 kB / 331.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.09899, allocations: 47.52 kB / 331.7 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.09915, allocations: 87.27 kB / 331.8 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004903/0.09965, allocations: 191.7 kB / 332 MB, free: 480 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004912/0.1001, allocations: 495.2 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.1003, allocations: 68.67 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.1006, allocations: 211.3 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002952/0.1009, allocations: 239.2 kB / 333 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.025e-05/0.1009, allocations: 40 kB / 333 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.1011, allocations: 87.89 kB / 333.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.1012, allocations: 99.7 kB / 333.2 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.1014, allocations: 183.2 kB / 333.4 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005203/0.1019, allocations: 466.5 kB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.102, allocations: 0 / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.102, allocations: 0 / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.102, allocations: 0 / 333.8 MB, free: 14.62 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.001395/0.1034, allocations: 0.6588 MB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1034, allocations: 8.031 kB / 334.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.642e-05/0.1035, allocations: 40.47 kB / 334.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.1039, allocations: 284.6 kB / 334.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.104, allocations: 24.94 kB / 334.8 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.394e-05/0.1041, allocations: 28.38 kB / 334.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006718/0.1047, allocations: 381.2 kB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.1048, allocations: 4.094 kB / 335.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.1048, allocations: 15.94 kB / 335.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.1048, allocations: 8 kB / 335.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007441/0.1056, allocations: 405.9 kB / 335.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.1076, allocations: 1.104 MB / 336.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.1081, allocations: 299.5 kB / 337 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003516/0.1085, allocations: 201.7 kB / 337.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.1086, allocations: 8 kB / 337.2 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.1086, allocations: 38.5 kB / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.325e-06/0.1086, allocations: 0 / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004469/0.1131, allocations: 2.027 MB / 339.3 MB, free: 8.797 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.1132, allocations: 59.41 kB / 339.4 MB, free: 8.727 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.1134, allocations: 233 kB / 339.6 MB, free: 8.488 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.844e-05/0.1135, allocations: 45.62 kB / 339.6 MB, free: 8.438 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1136, allocations: 152.7 kB / 339.8 MB, free: 8.281 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.1137, allocations: 150 kB / 339.9 MB, free: 8.133 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.1139, allocations: 98.14 kB / 340 MB, free: 8.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.114, allocations: 342.8 kB / 340.4 MB, free: 7.688 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004027/0.1144, allocations: 209 kB / 340.6 MB, free: 7.484 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/0.1149, allocations: 284.8 kB / 340.8 MB, free: 7.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005989/0.1155, allocations: 377.7 kB / 341.2 MB, free: 6.785 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1155, allocations: 4 kB / 341.2 MB, free: 6.781 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001386/0.1169, allocations: 0.7001 MB / 341.9 MB, free: 6.066 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.1169, allocations: 4 kB / 341.9 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.1169, allocations: 4 kB / 341.9 MB, free: 6.059 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008207/0.1178, allocations: 493.5 kB / 342.4 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.1181, allocations: 71.84 kB / 342.5 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.1193, allocations: 1.397 MB / 343.9 MB, free: 4.051 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.1197, allocations: 67.91 kB / 343.9 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-05/0.1198, allocations: 16 kB / 344 MB, free: 3.969 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.0001982/0.12, allocations: 166.1 kB / 344.1 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.428e-05/0.12, allocations: 35.56 kB / 344.2 MB, free: 3.762 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.1202, allocations: 47.3 kB / 344.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1202, allocations: 4 kB / 344.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.1202, allocations: 3.984 kB / 344.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1202, allocations: 4.062 kB / 344.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002549/0.1228, allocations: 1.351 MB / 345.6 MB, free: 2.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1228, allocations: 4 kB / 345.6 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.123, allocations: 55.91 kB / 345.6 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007006/0.1238, allocations: 473.5 kB / 346.1 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.1238, allocations: 15.98 kB / 346.1 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.1249, allocations: 1.339 MB / 347.4 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1249, allocations: 4.031 kB / 347.4 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.1266, allocations: 0.9405 MB / 348.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.1268, allocations: 152.7 kB / 348.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.349e-05/0.1269, allocations: 23.94 kB / 348.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/0.1272, allocations: 31.95 kB / 348.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.1274, allocations: 91.86 kB / 348.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-05/0.1274, allocations: 19.97 kB / 348.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.1276, allocations: 172.5 kB / 348.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1276, allocations: 0 / 348.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004251/0.128, allocations: 104 kB / 349 MB, free: 14.75 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.0002094/0.1282, allocations: 135.1 kB / 349.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009824/0.1292, allocations: 0.5138 MB / 349.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1292, allocations: 0 / 349.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005714/0.1298, allocations: 299.9 kB / 349.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.1303, allocations: 58.2 kB / 350 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.1323, allocations: 0.9575 MB / 350.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.1327, allocations: 0.7761 MB / 351.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.1328, allocations: 38.95 kB / 351.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.323e-05/0.1329, allocations: 31.42 kB / 351.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1329, allocations: 0 / 351.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01292/0.1458, allocations: 8.707 MB / 360.5 MB, free: 3.172 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 cvode -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