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.001356/0.001356, allocations: 104 kB / 17.58 MB, free: 5.438 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.001041/0.001041, allocations: 187.9 kB / 18.51 MB, free: 4.531 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.492/1.492, allocations: 205.1 MB / 224.4 MB, free: 12.33 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.001323/0.001323, allocations: 51.91 kB / 280.6 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09786, allocations: 46.63 MB / 327.3 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004417/0.1023, allocations: 2.42 MB / 329.7 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1036, allocations: 0.5076 MB / 330.2 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.1038, allocations: 0 / 330.2 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002652/0.1042, allocations: 47.52 kB / 330.2 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.1044, allocations: 87.27 kB / 330.3 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005679/0.105, allocations: 195.7 kB / 330.5 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005247/0.1055, allocations: 487.1 kB / 331 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.1057, allocations: 72.59 kB / 331.1 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003262/0.1061, allocations: 215.4 kB / 331.3 MB, free: 464 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003735/0.1064, allocations: 231.2 kB / 331.5 MB, free: 232 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.578e-05/0.1065, allocations: 40 kB / 331.5 MB, free: 192 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.1067, allocations: 87.89 kB / 331.6 MB, free: 104 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.1069, allocations: 103.7 kB / 331.7 MB, free: 0 / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000264/0.1071, allocations: 175.3 kB / 331.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005663/0.1077, allocations: 462.6 kB / 332.4 MB, free: 15.38 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1077, allocations: 0 / 332.4 MB, free: 15.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1077, allocations: 0 / 332.4 MB, free: 15.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.1078, allocations: 0 / 332.4 MB, free: 15.38 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.001412/0.1092, allocations: 0.6588 MB / 333 MB, free: 14.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1092, allocations: 16.03 kB / 333 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1094, allocations: 36.47 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.1097, allocations: 284.6 kB / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/0.1098, allocations: 20.94 kB / 333.4 MB, free: 14.28 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.337e-05/0.1099, allocations: 28.38 kB / 333.4 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007793/0.1106, allocations: 373.2 kB / 333.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1107, allocations: 8.094 kB / 333.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/0.1107, allocations: 15.94 kB / 333.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1107, allocations: 8 kB / 333.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008509/0.1116, allocations: 409.9 kB / 334.2 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.1138, allocations: 1.092 MB / 335.3 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005311/0.1144, allocations: 299.4 kB / 335.6 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003437/0.1148, allocations: 201.4 kB / 335.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-05/0.1148, allocations: 11.92 kB / 335.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1148, allocations: 38.55 kB / 335.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.763e-06/0.1148, allocations: 0 / 335.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004594/0.1194, allocations: 2.033 MB / 337.9 MB, free: 9.551 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.1195, allocations: 59.41 kB / 337.9 MB, free: 9.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.1198, allocations: 237 kB / 338.1 MB, free: 9.238 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.1198, allocations: 37.7 kB / 338.2 MB, free: 9.195 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.12, allocations: 152.7 kB / 338.3 MB, free: 9.039 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1201, allocations: 154 kB / 338.5 MB, free: 8.887 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.1203, allocations: 98.14 kB / 338.6 MB, free: 8.785 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1205, allocations: 338.8 kB / 338.9 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004197/0.1209, allocations: 213 kB / 339.1 MB, free: 8.238 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004804/0.1214, allocations: 280.8 kB / 339.4 MB, free: 7.938 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006549/0.1221, allocations: 385.7 kB / 339.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1221, allocations: 0 / 339.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001494/0.1236, allocations: 0.6924 MB / 340.5 MB, free: 6.828 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.1237, allocations: 11.94 kB / 340.5 MB, free: 6.816 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1237, allocations: 0 / 340.5 MB, free: 6.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009599/0.1246, allocations: 497.5 kB / 341 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.1249, allocations: 79.83 kB / 341 MB, free: 6.246 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.1263, allocations: 1.386 MB / 342.4 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004306/0.1268, allocations: 67.89 kB / 342.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.1268, allocations: 28.11 kB / 342.5 MB, free: 4.715 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.000237/0.1271, allocations: 161.4 kB / 342.7 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.076e-05/0.1272, allocations: 35.56 kB / 342.7 MB, free: 4.512 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.1273, allocations: 51.3 kB / 342.8 MB, free: 4.465 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1273, allocations: 4 kB / 342.8 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.1273, allocations: 0 / 342.8 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.1273, allocations: 3.984 kB / 342.8 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.1301, allocations: 1.353 MB / 344.1 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.1302, allocations: 3.984 kB / 344.1 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.1304, allocations: 59.92 kB / 344.2 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006859/0.1311, allocations: 465.5 kB / 344.6 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.1312, allocations: 15.98 kB / 344.6 MB, free: 2.488 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.1324, allocations: 1.351 MB / 346 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1324, allocations: 0 / 346 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.1341, allocations: 0.9393 MB / 346.9 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002067/0.1344, allocations: 156.7 kB / 347.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.891e-05/0.1344, allocations: 19.94 kB / 347.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.1347, allocations: 39.95 kB / 347.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.1349, allocations: 79.86 kB / 347.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/0.135, allocations: 19.98 kB / 347.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001661/0.1352, allocations: 172.5 kB / 347.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1352, allocations: 0 / 347.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004573/0.1356, allocations: 104 kB / 347.5 MB, free: 15.51 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.0002616/0.1359, allocations: 139.2 kB / 347.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.1371, allocations: 0.5293 MB / 348.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1371, allocations: 320 / 348.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005828/0.1377, allocations: 296 kB / 348.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004864/0.1382, allocations: 56.23 kB / 348.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.1404, allocations: 0.973 MB / 349.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.1408, allocations: 0.78 MB / 350.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.1409, allocations: 34.95 kB / 350.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.422e-05/0.141, allocations: 35.42 kB / 350.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.141, allocations: 0 / 350.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of Templates: time 0.01376/0.1548, allocations: 8.696 MB / 359 MB, free: 3.898 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","/var/lib/jenkins/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