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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 84.98 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 173.2 kB / 26.39 MB, free: 8.141 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9574/0.9574, allocations: 158.6 MB / 188.3 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 3.938 kB / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.204e-05/2.372e-05, allocations: 2.312 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002826/0.00285, allocations: 2.405 MB / 254.6 MB, free: 4.84 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009275/0.003777, allocations: 0.5078 MB / 255.1 MB, free: 4.328 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.003917, allocations: 4 kB / 255.2 MB, free: 4.324 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.004133, allocations: 47.52 kB / 255.2 MB, free: 4.277 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.004268, allocations: 83.27 kB / 255.3 MB, free: 4.195 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005161/0.004784, allocations: 207.5 kB / 255.5 MB, free: 3.992 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004693/0.005253, allocations: 0.4988 MB / 256 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.005394, allocations: 40.92 kB / 256 MB, free: 3.449 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002888/0.005683, allocations: 295.5 kB / 256.3 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.005936, allocations: 195.5 kB / 256.5 MB, free: 2.969 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.646e-05/0.005983, allocations: 36 kB / 256.5 MB, free: 2.934 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.006121, allocations: 87.94 kB / 256.6 MB, free: 2.848 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.914e-05/0.00621, allocations: 99.7 kB / 256.7 MB, free: 2.75 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.006311, allocations: 135.7 kB / 256.9 MB, free: 2.617 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.006708, allocations: 386.7 kB / 257.2 MB, free: 2.238 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.006711, allocations: 0 / 257.2 MB, free: 2.238 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.006712, allocations: 0 / 257.2 MB, free: 2.238 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.006717, allocations: 0 / 257.2 MB, free: 2.238 MB / 234.7 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.000788/0.007505, allocations: 0.6713 MB / 257.9 MB, free: 1.527 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.007544, allocations: 8.031 kB / 257.9 MB, free: 1.52 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.007653, allocations: 64.7 kB / 258 MB, free: 1.457 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.007963, allocations: 221 kB / 258.2 MB, free: 1.215 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.007992, allocations: 21.03 kB / 258.2 MB, free: 1.195 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.344e-05/0.008056, allocations: 36.31 kB / 258.2 MB, free: 1.16 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.008448, allocations: 279.2 kB / 258.5 MB, free: 0.875 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.008464, allocations: 4.188 kB / 258.5 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.008489, allocations: 12.38 kB / 258.5 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.008497, allocations: 8.375 kB / 258.5 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002564/0.008754, allocations: 212.2 kB / 258.7 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.009867, allocations: 0.8861 MB / 259.6 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.01014, allocations: 188.5 kB / 259.8 MB, free: 15.51 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.01026, allocations: 104.6 kB / 259.9 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.0103, allocations: 8 kB / 259.9 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.01034, allocations: 41.33 kB / 260 MB, free: 15.35 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 2.274e-06/0.01034, allocations: 0 / 260 MB, free: 15.35 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002132/0.01247, allocations: 1.249 MB / 261.2 MB, free: 14.03 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.0125, allocations: 55.41 kB / 261.3 MB, free: 13.96 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.01266, allocations: 276.2 kB / 261.5 MB, free: 13.68 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/0.0127, allocations: 37.7 kB / 261.6 MB, free: 13.63 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.0128, allocations: 207.7 kB / 261.8 MB, free: 13.43 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.053e-05/0.01289, allocations: 154.7 kB / 261.9 MB, free: 13.27 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.01302, allocations: 103.7 kB / 262 MB, free: 13.16 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.01316, allocations: 0.5157 MB / 262.5 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.01331, allocations: 108.8 kB / 262.7 MB, free: 12.53 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.01348, allocations: 202.8 kB / 262.9 MB, free: 12.3 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.01374, allocations: 265.3 kB / 263.1 MB, free: 12.01 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.01374, allocations: 0 / 263.1 MB, free: 12.01 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006714/0.01442, allocations: 0.4966 MB / 263.6 MB, free: 11.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.01444, allocations: 7.938 kB / 263.6 MB, free: 11.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.01445, allocations: 4 kB / 263.6 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000483/0.01493, allocations: 415 kB / 264 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.0151, allocations: 67.91 kB / 264.1 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008443/0.01594, allocations: 1.752 MB / 265.8 MB, free: 9.188 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.01613, allocations: 48.02 kB / 265.9 MB, free: 9.141 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.01616, allocations: 19.98 kB / 265.9 MB, free: 9.121 MB / 250.7 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.0001406/0.0163, allocations: 180.5 kB / 266.1 MB, free: 8.934 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.892e-05/0.01637, allocations: 43.81 kB / 266.1 MB, free: 8.891 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.039e-05/0.01643, allocations: 47.3 kB / 266.2 MB, free: 8.848 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.01644, allocations: 4 kB / 266.2 MB, free: 8.844 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.01644, allocations: 3.938 kB / 266.2 MB, free: 8.84 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.01645, allocations: 0 / 266.2 MB, free: 8.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.01778, allocations: 1.031 MB / 267.2 MB, free: 7.746 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.01779, allocations: 0 / 267.2 MB, free: 7.746 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.01794, allocations: 63.91 kB / 267.3 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004091/0.01835, allocations: 399.2 kB / 267.7 MB, free: 7.285 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.01838, allocations: 19.98 kB / 267.7 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007948/0.01917, allocations: 1.744 MB / 269.4 MB, free: 5.457 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.01918, allocations: 0 / 269.4 MB, free: 5.457 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008068/0.01998, allocations: 0.7339 MB / 270.2 MB, free: 4.672 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.02009, allocations: 79.67 kB / 270.2 MB, free: 4.594 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.533e-05/0.02014, allocations: 20.03 kB / 270.3 MB, free: 4.574 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.02026, allocations: 24.09 kB / 270.3 MB, free: 4.551 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.02038, allocations: 99.77 kB / 270.4 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.02041, allocations: 15.98 kB / 270.4 MB, free: 4.438 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.237e-05/0.02049, allocations: 189 kB / 270.6 MB, free: 4.254 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02049, allocations: 0 / 270.6 MB, free: 4.254 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003297/0.02082, allocations: 103.9 kB / 270.7 MB, free: 4.152 MB / 250.7 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.0001816/0.021, allocations: 139.2 kB / 270.8 MB, free: 4.004 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004654/0.02147, allocations: 325.4 kB / 271.1 MB, free: 3.684 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.02147, allocations: 0 / 271.1 MB, free: 3.684 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.0217, allocations: 209.5 kB / 271.3 MB, free: 3.477 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.02217, allocations: 84.75 kB / 271.4 MB, free: 3.395 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.02374, allocations: 0.8208 MB / 272.2 MB, free: 2.523 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.112e-05/0.0238, allocations: 97.28 kB / 272.3 MB, free: 2.41 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.779e-05/0.02388, allocations: 34.95 kB / 272.4 MB, free: 2.379 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.02402, allocations: 130.2 kB / 272.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02402, allocations: 0 / 272.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of Templates: time 0.01022/0.03425, allocations: 8.233 MB / 280.7 MB, free: 10.04 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.923419003840536]