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.001151/0.001151, allocations: 94.75 kB / 17.3 MB, free: 6.391 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.0009637/0.0009639, allocations: 173.4 kB / 18.2 MB, free: 5.551 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.572/1.572, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005193/0.0005195, allocations: 10.81 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1053, allocations: 47.58 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00313/0.1085, allocations: 2.107 MB / 331.1 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.1098, allocations: 0.5038 MB / 331.6 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002545/0.1101, allocations: 4 kB / 331.6 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002403/0.1104, allocations: 35.7 kB / 331.6 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.1106, allocations: 75.45 kB / 331.7 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.1112, allocations: 163.8 kB / 331.8 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007589/0.112, allocations: 463.1 kB / 332.3 MB, free: 412 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.1122, allocations: 56.7 kB / 332.3 MB, free: 360 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004549/0.1127, allocations: 191.3 kB / 332.5 MB, free: 168 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.1132, allocations: 219.2 kB / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-05/0.1132, allocations: 20 kB / 332.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.1134, allocations: 67.89 kB / 332.8 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.1136, allocations: 83.7 kB / 332.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.1138, allocations: 192.8 kB / 333.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000497/0.1143, allocations: 426.8 kB / 333.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1143, allocations: 0 / 333.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1144, allocations: 0 / 333.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.1144, allocations: 0 / 333.5 MB, free: 15.17 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.001307/0.1157, allocations: 0.6237 MB / 334.1 MB, free: 14.49 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.1158, allocations: 12.03 kB / 334.1 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.1159, allocations: 32.56 kB / 334.2 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.1163, allocations: 280.6 kB / 334.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.1163, allocations: 24.94 kB / 334.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-05/0.1164, allocations: 32.28 kB / 334.5 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007568/0.1172, allocations: 381.2 kB / 334.9 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.1172, allocations: 192 / 334.9 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.637e-05/0.1173, allocations: 19.92 kB / 334.9 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.1173, allocations: 11.94 kB / 334.9 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007618/0.1181, allocations: 405.9 kB / 335.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1201, allocations: 1.127 MB / 336.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.1206, allocations: 303.4 kB / 336.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003832/0.121, allocations: 201.8 kB / 336.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.1211, allocations: 4 kB / 336.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/0.1211, allocations: 42.5 kB / 337 MB, free: 11.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.234e-06/0.1211, allocations: 7.938 kB / 337 MB, free: 11.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004693/0.1258, allocations: 2.119 MB / 339.1 MB, free: 9.246 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.1259, allocations: 55.41 kB / 339.2 MB, free: 9.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.1261, allocations: 236.9 kB / 339.4 MB, free: 8.938 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/0.1262, allocations: 41.7 kB / 339.4 MB, free: 8.891 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.1263, allocations: 144.8 kB / 339.6 MB, free: 8.742 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.1264, allocations: 157.9 kB / 339.7 MB, free: 8.586 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.361e-05/0.1265, allocations: 45.7 kB / 339.8 MB, free: 8.535 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1266, allocations: 342.7 kB / 340.1 MB, free: 8.191 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.127, allocations: 217 kB / 340.3 MB, free: 7.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004397/0.1275, allocations: 280.8 kB / 340.6 MB, free: 7.68 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000638/0.1281, allocations: 385.7 kB / 341 MB, free: 7.277 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1281, allocations: 0 / 341 MB, free: 7.277 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001446/0.1296, allocations: 0.6924 MB / 341.7 MB, free: 6.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1296, allocations: 4 kB / 341.7 MB, free: 6.566 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.1296, allocations: 8.141 kB / 341.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008568/0.1305, allocations: 0.4935 MB / 342.2 MB, free: 6.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.1308, allocations: 75.89 kB / 342.2 MB, free: 5.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.132, allocations: 1.386 MB / 343.6 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004873/0.1325, allocations: 95.98 kB / 343.7 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.653e-05/0.1326, allocations: 23.98 kB / 343.7 MB, free: 4.43 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.0002078/0.1328, allocations: 157.4 kB / 343.9 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.352e-05/0.1329, allocations: 35.56 kB / 343.9 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.133, allocations: 51.3 kB / 344 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.133, allocations: 4 kB / 344 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.1331, allocations: 4 kB / 344 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1331, allocations: 0 / 344 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002673/0.1357, allocations: 1.396 MB / 345.4 MB, free: 2.703 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.1358, allocations: 4 kB / 345.4 MB, free: 2.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/0.136, allocations: 59.91 kB / 345.4 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007033/0.1367, allocations: 477.5 kB / 345.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/0.1368, allocations: 15.98 kB / 345.9 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.1379, allocations: 1.343 MB / 347.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1379, allocations: 0 / 347.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.1396, allocations: 0.9549 MB / 348.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.1398, allocations: 152.7 kB / 348.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.975e-05/0.1399, allocations: 23.94 kB / 348.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.1402, allocations: 47.95 kB / 348.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.1404, allocations: 87.94 kB / 348.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.1404, allocations: 19.97 kB / 348.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001501/0.1406, allocations: 168.5 kB / 348.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1406, allocations: 4 kB / 348.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000451/0.141, allocations: 104 kB / 348.8 MB, free: 15.15 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.000219/0.1413, allocations: 139.2 kB / 349 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.1423, allocations: 0.5141 MB / 349.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1423, allocations: 4 kB / 349.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005716/0.1429, allocations: 292 kB / 349.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.1434, allocations: 56.38 kB / 349.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.1457, allocations: 1.202 MB / 351 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.146, allocations: 0.7764 MB / 351.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.1462, allocations: 38.95 kB / 351.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.686e-05/0.1463, allocations: 35.42 kB / 351.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1463, allocations: 0 / 351.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of Templates: time 0.01249/0.1588, allocations: 8.119 MB / 360 MB, free: 3.91 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