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.001572/0.001572, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.00184/0.00184, allocations: 190 kB / 18.07 MB, free: 5.414 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.558/1.558, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.002013/0.002013, allocations: 51.92 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1185, allocations: 46.62 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005084/0.1237, allocations: 2.465 MB / 329.1 MB, free: 2.414 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.1251, allocations: 0.5038 MB / 329.6 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000258/0.1254, allocations: 4 kB / 329.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003655/0.1258, allocations: 39.69 kB / 329.6 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.1261, allocations: 71.47 kB / 329.7 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005791/0.1267, allocations: 163.8 kB / 329.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005371/0.1272, allocations: 463.1 kB / 330.3 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.1274, allocations: 56.72 kB / 330.3 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003646/0.1278, allocations: 195.3 kB / 330.5 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004277/0.1283, allocations: 223.2 kB / 330.7 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.454e-05/0.1283, allocations: 24 kB / 330.8 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.1286, allocations: 75.83 kB / 330.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.1287, allocations: 83.7 kB / 330.9 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.1289, allocations: 167.2 kB / 331.1 MB, free: 384 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005769/0.1295, allocations: 442.8 kB / 331.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1295, allocations: 0 / 331.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1296, allocations: 0 / 331.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.1296, allocations: 0 / 331.5 MB, free: 15.94 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.00137/0.1309, allocations: 0.6588 MB / 332.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.131, allocations: 8.031 kB / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.1311, allocations: 36.47 kB / 332.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.1315, allocations: 280.6 kB / 332.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.1315, allocations: 24.94 kB / 332.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.34e-05/0.1316, allocations: 32.38 kB / 332.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007662/0.1324, allocations: 381.2 kB / 332.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.1324, allocations: 8.094 kB / 332.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.603e-05/0.1325, allocations: 11.94 kB / 332.9 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1325, allocations: 8 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00079/0.1333, allocations: 405.9 kB / 333.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.1353, allocations: 1.096 MB / 334.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005426/0.1359, allocations: 307.3 kB / 334.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003634/0.1363, allocations: 197.4 kB / 334.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.828e-05/0.1363, allocations: 15.91 kB / 335 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.1364, allocations: 34.56 kB / 335 MB, free: 12.28 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.453e-06/0.1364, allocations: 4 kB / 335 MB, free: 12.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004586/0.141, allocations: 2.025 MB / 337 MB, free: 10.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.141, allocations: 55.41 kB / 337.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.1413, allocations: 237 kB / 337.3 MB, free: 9.805 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.1414, allocations: 41.7 kB / 337.3 MB, free: 9.758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1415, allocations: 152.7 kB / 337.5 MB, free: 9.602 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1417, allocations: 154 kB / 337.6 MB, free: 9.449 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.1419, allocations: 94.14 kB / 337.7 MB, free: 9.352 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.142, allocations: 346.7 kB / 338.1 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004121/0.1425, allocations: 205 kB / 338.3 MB, free: 8.805 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/0.1429, allocations: 288.8 kB / 338.6 MB, free: 8.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006291/0.1436, allocations: 369.7 kB / 338.9 MB, free: 8.109 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1436, allocations: 4 kB / 338.9 MB, free: 8.105 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001437/0.145, allocations: 0.6962 MB / 339.6 MB, free: 7.395 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.145, allocations: 4 kB / 339.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1451, allocations: 4.156 kB / 339.6 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009707/0.146, allocations: 0.4896 MB / 340.1 MB, free: 6.891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1463, allocations: 83.78 kB / 340.2 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.1476, allocations: 1.39 MB / 341.6 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004178/0.148, allocations: 68.03 kB / 341.7 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.1481, allocations: 16.06 kB / 341.7 MB, free: 5.285 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.0002125/0.1483, allocations: 169.4 kB / 341.8 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.445e-05/0.1484, allocations: 39.56 kB / 341.9 MB, free: 5.07 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.1485, allocations: 51.3 kB / 341.9 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1485, allocations: 4 kB / 341.9 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1485, allocations: 0 / 341.9 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1485, allocations: 0 / 341.9 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002961/0.1515, allocations: 1.349 MB / 343.3 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.1515, allocations: 4 kB / 343.3 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.1518, allocations: 59.91 kB / 343.3 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008132/0.1527, allocations: 465.5 kB / 343.8 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-05/0.1527, allocations: 23.98 kB / 343.8 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.1541, allocations: 1.343 MB / 345.2 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.1541, allocations: 4.031 kB / 345.2 MB, free: 1.648 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.1559, allocations: 0.9432 MB / 346.1 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002134/0.1561, allocations: 156.7 kB / 346.3 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.1562, allocations: 19.94 kB / 346.3 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.1565, allocations: 39.95 kB / 346.3 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.1567, allocations: 79.86 kB / 346.4 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.667e-05/0.1568, allocations: 19.97 kB / 346.4 MB, free: 348 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001618/0.157, allocations: 172.5 kB / 346.6 MB, free: 172 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.157, allocations: 0 / 346.6 MB, free: 172 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.000523/0.1575, allocations: 100 kB / 346.7 MB, free: 72 kB / 286.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.000279/0.1578, allocations: 139.1 kB / 346.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.1589, allocations: 0.5099 MB / 347.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.1589, allocations: 4 kB / 347.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006214/0.1595, allocations: 284 kB / 347.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.1601, allocations: 60.97 kB / 347.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.1625, allocations: 1.097 MB / 348.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.1629, allocations: 0.7764 MB / 349.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.1631, allocations: 42.95 kB / 349.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.44e-05/0.1631, allocations: 35.42 kB / 349.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1632, allocations: 0 / 349.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Templates: time 0.01403/0.1772, allocations: 8.181 MB / 357.8 MB, free: 4.875 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches