Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001354/0.001354, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001136/0.001136, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.938/0.938, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.078e-05, allocations: 2.312 kB / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.0065/0.006521, allocations: 2.578 MB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008898/0.00741, allocations: 0.5772 MB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003126/0.01054, allocations: 7.938 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.01081, allocations: 63.42 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.0111, allocations: 139 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.01139, allocations: 171.7 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004206/0.01182, allocations: 0.5263 MB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.01194, allocations: 44.91 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000292/0.01224, allocations: 315.4 kB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.0125, allocations: 215.5 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.214e-05/0.01256, allocations: 40 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.0127, allocations: 87.92 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.01283, allocations: 115.7 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.01295, allocations: 143.6 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004153/0.01337, allocations: 418.6 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.01337, allocations: 0 / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.01337, allocations: 0 / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.01337, allocations: 0 / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003928/0.0173, allocations: 0.7179 MB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.01734, allocations: 8.031 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.01746, allocations: 60.7 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.01776, allocations: 256.6 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.0178, allocations: 29.03 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.412e-05/0.01785, allocations: 28.38 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.01834, allocations: 310.4 kB / 279.8 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.01835, allocations: 8.141 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.01839, allocations: 12.38 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.0184, allocations: 8.375 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004376/0.01884, allocations: 243.7 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.02014, allocations: 0.9438 MB / 281 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003834/0.02052, allocations: 232.4 kB / 281.2 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.02072, allocations: 115.6 kB / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.02075, allocations: 4 kB / 281.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.02077, allocations: 41.39 kB / 281.4 MB, free: 8.984 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.412e-06/0.02077, allocations: 0 / 281.4 MB, free: 8.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002957/0.02373, allocations: 1.42 MB / 282.8 MB, free: 7.492 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.02375, allocations: 55.91 kB / 282.8 MB, free: 7.426 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.02395, allocations: 280.3 kB / 283.1 MB, free: 7.137 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.02399, allocations: 41.69 kB / 283.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.02408, allocations: 207.7 kB / 283.3 MB, free: 6.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.02419, allocations: 170.6 kB / 283.5 MB, free: 6.715 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.02433, allocations: 103.9 kB / 283.6 MB, free: 6.605 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.02445, allocations: 0.5079 MB / 284.1 MB, free: 6.086 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.02468, allocations: 125.2 kB / 284.2 MB, free: 5.965 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.02494, allocations: 224.4 kB / 284.5 MB, free: 5.711 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003667/0.02531, allocations: 281.4 kB / 284.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.02531, allocations: 0 / 284.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007511/0.02606, allocations: 484.6 kB / 285.2 MB, free: 4.914 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.02608, allocations: 15.86 kB / 285.2 MB, free: 4.898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.02609, allocations: 4 kB / 285.2 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000474/0.02656, allocations: 267.3 kB / 285.5 MB, free: 4.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001992/0.02676, allocations: 71.84 kB / 285.6 MB, free: 4.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009171/0.02768, allocations: 1.748 MB / 287.3 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.02789, allocations: 43.95 kB / 287.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/0.02793, allocations: 19.98 kB / 287.4 MB, free: 2.68 MB / 266.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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.02807, allocations: 188.5 kB / 287.6 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.89e-05/0.02815, allocations: 51.88 kB / 287.6 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.25e-05/0.02822, allocations: 47.61 kB / 287.7 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.02822, allocations: 8.047 kB / 287.7 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.02823, allocations: 7.922 kB / 287.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.02823, allocations: 0 / 287.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.02991, allocations: 1.093 MB / 288.8 MB, free: 1.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.02991, allocations: 160 / 288.8 MB, free: 1.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.0301, allocations: 63.98 kB / 288.8 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003841/0.03048, allocations: 251.2 kB / 289.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.03052, allocations: 23.97 kB / 289.1 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.03162, allocations: 1.733 MB / 290.8 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.03162, allocations: 4.062 kB / 290.8 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.03269, allocations: 0.7722 MB / 291.6 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.03282, allocations: 83.67 kB / 291.7 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.243e-05/0.03288, allocations: 20 kB / 291.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.03306, allocations: 27.97 kB / 291.7 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.03322, allocations: 87.83 kB / 291.8 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.03325, allocations: 27.97 kB / 291.8 MB, free: 14 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001191/0.03337, allocations: 197.1 kB / 292 MB, free: 13.81 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03337, allocations: 0 / 292 MB, free: 13.81 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003689/0.03374, allocations: 100 kB / 292.1 MB, free: 13.71 MB / 282.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008108/0.03455, allocations: 379 kB / 292.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006586/0.03521, allocations: 389.1 kB / 292.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.03521, allocations: 0 / 292.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.03554, allocations: 222.5 kB / 293.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.03598, allocations: 100.2 kB / 293.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.03746, allocations: 0.8883 MB / 294.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.288e-05/0.03753, allocations: 105.3 kB / 294.2 MB, free: 11.69 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.03763, allocations: 38.95 kB / 294.2 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.745e-05/0.03772, allocations: 36.48 kB / 294.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of SimCode: time 6.52e-07/0.03772, allocations: 0 / 294.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of Templates: time 0.0112/0.04893, allocations: 7.99 MB / 302.3 MB, free: 3.703 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 3.0403378009796143]