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.0009325/0.0009321, allocations: 90.95 kB / 16.93 MB, free: 5.961 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.0009134/0.0009134, allocations: 179.4 kB / 17.82 MB, free: 5.645 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.727/1.727, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005151/0.0005152, allocations: 16 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1095, allocations: 47.58 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003531/0.1131, allocations: 1.957 MB / 330.3 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.1147, allocations: 0.5 MB / 330.8 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.115, allocations: 4 kB / 330.8 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.1152, allocations: 35.77 kB / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.1155, allocations: 95.72 kB / 330.9 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005542/0.1161, allocations: 143.7 kB / 331.1 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005563/0.1167, allocations: 288 kB / 331.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.1169, allocations: 60.69 kB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.1173, allocations: 183.4 kB / 331.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004277/0.1177, allocations: 211.2 kB / 331.8 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.165e-05/0.1178, allocations: 20 kB / 331.8 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.118, allocations: 63.89 kB / 331.9 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1181, allocations: 71.78 kB / 331.9 MB, free: 488 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.1183, allocations: 81.52 kB / 332 MB, free: 400 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.1188, allocations: 327.4 kB / 332.3 MB, free: 72 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.1188, allocations: 0 / 332.3 MB, free: 72 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1188, allocations: 0 / 332.3 MB, free: 72 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.1188, allocations: 0 / 332.3 MB, free: 72 kB / 270.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.00152/0.1204, allocations: 0.6158 MB / 332.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.1204, allocations: 8.031 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.1206, allocations: 35.61 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.1211, allocations: 275.4 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.831e-05/0.1211, allocations: 24.52 kB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.709e-05/0.1212, allocations: 32 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009351/0.1222, allocations: 380.7 kB / 333.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.1222, allocations: 3.906 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.1222, allocations: 12 kB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.1223, allocations: 4 kB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007718/0.123, allocations: 409.9 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.1253, allocations: 1.127 MB / 335.2 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005307/0.1258, allocations: 307.4 kB / 335.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.149e-05/0.1259, allocations: 4.328 kB / 335.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.126, allocations: 43.2 kB / 335.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.826e-06/0.126, allocations: 0 / 335.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.005238/0.1312, allocations: 2.096 MB / 337.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.1313, allocations: 59.36 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1316, allocations: 240.9 kB / 338 MB, free: 10.08 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.949e-05/0.1317, allocations: 45.64 kB / 338 MB, free: 10.03 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.132, allocations: 152.7 kB / 338.2 MB, free: 9.871 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.1321, allocations: 154 kB / 338.3 MB, free: 9.719 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.1321, allocations: 8 kB / 338.3 MB, free: 9.711 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.1324, allocations: 338.8 kB / 338.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.1328, allocations: 205 kB / 338.8 MB, free: 9.172 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005184/0.1334, allocations: 284.8 kB / 339.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.1337, allocations: 180.7 kB / 339.3 MB, free: 8.688 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1338, allocations: 0 / 339.3 MB, free: 8.688 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001474/0.1352, allocations: 0.6963 MB / 340 MB, free: 7.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.1353, allocations: 4 kB / 340 MB, free: 7.977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.1353, allocations: 4 kB / 340 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009772/0.1363, allocations: 497.5 kB / 340.5 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002882/0.1366, allocations: 75.83 kB / 340.6 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.138, allocations: 1.394 MB / 342 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.1385, allocations: 91.98 kB / 342.1 MB, free: 5.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.1385, allocations: 20.14 kB / 342.1 MB, free: 5.852 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002523/0.1388, allocations: 161.9 kB / 342.2 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.781e-05/0.1389, allocations: 39.58 kB / 342.3 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.139, allocations: 47.3 kB / 342.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.139, allocations: 4 kB / 342.3 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.139, allocations: 0 / 342.3 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1391, allocations: 3.984 kB / 342.3 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.1421, allocations: 1.372 MB / 343.7 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.1421, allocations: 12.08 kB / 343.7 MB, free: 4.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.1424, allocations: 59.88 kB / 343.8 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008571/0.1432, allocations: 469.3 kB / 344.2 MB, free: 3.609 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.1433, allocations: 15.98 kB / 344.2 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.1446, allocations: 1.343 MB / 345.6 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.1446, allocations: 7.984 kB / 345.6 MB, free: 2.191 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.1463, allocations: 1.01 MB / 346.6 MB, free: 1.113 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.1465, allocations: 156.7 kB / 346.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.421e-05/0.1466, allocations: 12.19 kB / 346.8 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.1469, allocations: 55.95 kB / 346.8 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.1471, allocations: 107.7 kB / 346.9 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.1472, allocations: 19.98 kB / 346.9 MB, free: 0.75 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001696/0.1473, allocations: 168.5 kB / 347.1 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1474, allocations: 0 / 347.1 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005152/0.1479, allocations: 104 kB / 347.2 MB, free: 496 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003075/0.1482, allocations: 146.9 kB / 347.4 MB, free: 340 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.1494, allocations: 0.4983 MB / 347.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1494, allocations: 320 / 347.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005876/0.15, allocations: 299.9 kB / 348.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.1504, allocations: 36.42 kB / 348.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.1528, allocations: 1.171 MB / 349.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.1533, allocations: 0.7919 MB / 350.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.1534, allocations: 30.97 kB / 350.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.599e-05/0.1535, allocations: 23.44 kB / 350.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1535, allocations: 0 / 350.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of Templates: time 0.01286/0.1664, allocations: 7.888 MB / 358.1 MB, free: 5.527 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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