Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009073/0.0009073, allocations: 76.06 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008198/0.0008198, allocations: 143.7 kB / 24.98 MB, free: 9.301 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9387/0.9387, allocations: 173.4 MB / 201.5 MB, free: 9.301 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.031e-05, allocations: 2.312 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003727/0.003748, allocations: 2.443 MB / 270.5 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.004858, allocations: 499.2 kB / 271 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.004995, allocations: 0 / 271 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.005213, allocations: 55.52 kB / 271 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001822/0.005395, allocations: 91.25 kB / 271.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006061/0.006001, allocations: 203.5 kB / 271.3 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005335/0.006534, allocations: 498.9 kB / 271.8 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.006698, allocations: 44.91 kB / 271.9 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003761/0.007074, allocations: 295.5 kB / 272.1 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.007383, allocations: 199.5 kB / 272.3 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.876e-05/0.007452, allocations: 40 kB / 272.4 MB, free: 2.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.007631, allocations: 91.83 kB / 272.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.007749, allocations: 103.7 kB / 272.6 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.007897, allocations: 127.7 kB / 272.7 MB, free: 2.051 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005037/0.008401, allocations: 374.8 kB / 273.1 MB, free: 1.684 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.008403, allocations: 0 / 273.1 MB, free: 1.684 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.008404, allocations: 0 / 273.1 MB, free: 1.684 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.008409, allocations: 4 kB / 273.1 MB, free: 1.68 MB / 250.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.001273/0.009682, allocations: 0.6752 MB / 273.7 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.009723, allocations: 12.92 kB / 273.8 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.00986, allocations: 52.75 kB / 273.8 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/0.01022, allocations: 240.9 kB / 274 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.01026, allocations: 21.03 kB / 274.1 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.95e-05/0.01032, allocations: 32.38 kB / 274.1 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005846/0.01091, allocations: 323.2 kB / 274.4 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.01093, allocations: 8.141 kB / 274.4 MB, free: 264 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.01095, allocations: 8.375 kB / 274.4 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.01096, allocations: 8.375 kB / 274.4 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003761/0.01134, allocations: 283.6 kB / 274.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.01242, allocations: 0.9247 MB / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.01272, allocations: 220.6 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.01289, allocations: 136.6 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.01292, allocations: 4 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.01294, allocations: 45.33 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.432e-06/0.01294, allocations: 3.938 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002511/0.01545, allocations: 1.466 MB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.01548, allocations: 59.41 kB / 277.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.01566, allocations: 280.2 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.01569, allocations: 41.69 kB / 277.9 MB, free: 12.6 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.131e-05/0.01577, allocations: 199.8 kB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.514e-05/0.01586, allocations: 158.7 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.01597, allocations: 99.78 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.01609, allocations: 0.504 MB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.01629, allocations: 152.9 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.01653, allocations: 242.8 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.01685, allocations: 309.4 kB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01686, allocations: 0 / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007794/0.01764, allocations: 0.5823 MB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.01765, allocations: 6.812 kB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.01766, allocations: 4 kB / 280.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/0.01816, allocations: 439.1 kB / 280.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.01833, allocations: 75.91 kB / 280.6 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009457/0.01927, allocations: 1.795 MB / 282.4 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.01945, allocations: 51.94 kB / 282.5 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/0.01948, allocations: 16 kB / 282.5 MB, free: 7.824 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 (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.0001298/0.01961, allocations: 192.3 kB / 282.7 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.389e-05/0.01967, allocations: 47.8 kB / 282.7 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.644e-05/0.01973, allocations: 43.31 kB / 282.7 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.01974, allocations: 11.94 kB / 282.8 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.01974, allocations: 0 / 282.8 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.01975, allocations: 3.984 kB / 282.8 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/0.02116, allocations: 1.141 MB / 283.9 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.02116, allocations: 0 / 283.9 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.02131, allocations: 63.91 kB / 284 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004276/0.02174, allocations: 419 kB / 284.4 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.02176, allocations: 15.98 kB / 284.4 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007656/0.02253, allocations: 1.791 MB / 286.2 MB, free: 3.953 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.02253, allocations: 0 / 286.2 MB, free: 3.953 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009351/0.02347, allocations: 0.8432 MB / 287 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.02357, allocations: 75.75 kB / 287.1 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.687e-05/0.02362, allocations: 16 kB / 287.1 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.02374, allocations: 27.97 kB / 287.1 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.02386, allocations: 103.7 kB / 287.2 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.02388, allocations: 15.98 kB / 287.3 MB, free: 2.828 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.486e-05/0.02398, allocations: 197.1 kB / 287.5 MB, free: 2.637 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02398, allocations: 0 / 287.5 MB, free: 2.637 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002738/0.02425, allocations: 100 kB / 287.5 MB, free: 2.539 MB / 266.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.0001768/0.02443, allocations: 146.4 kB / 287.7 MB, free: 2.391 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005569/0.02499, allocations: 409.5 kB / 288.1 MB, free: 1.984 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.02499, allocations: 0 / 288.1 MB, free: 1.984 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.02525, allocations: 233.2 kB / 288.3 MB, free: 1.754 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.02695, allocations: 72.97 kB / 288.4 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.02883, allocations: 0.8446 MB / 289.2 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.581e-05/0.0289, allocations: 97.28 kB / 289.3 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.158e-05/0.02899, allocations: 34.97 kB / 289.4 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.02906, allocations: 36.48 kB / 289.4 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of SimCode: time 1.363e-06/0.02906, allocations: 0 / 289.4 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of Templates: time 0.1056/0.1347, allocations: 7.342 MB / 296.7 MB, free: 31.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.7803313490003347]