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.001382/0.001382, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001459/0.001459, allocations: 145.4 kB / 25.59 MB, free: 8.918 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.9356/0.9356, allocations: 173.4 MB / 202.3 MB, free: 8.273 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.082e-06/1.082e-06, allocations: 0 / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.28e-05/1.389e-05, allocations: 5.266 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002396/0.002409, allocations: 2.407 MB / 271.6 MB, free: 7.395 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000769/0.003178, allocations: 0.4936 MB / 272.1 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.003283, allocations: 4.531 kB / 272.1 MB, free: 6.898 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001818/0.003465, allocations: 48.27 kB / 272.1 MB, free: 6.852 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.003644, allocations: 92.59 kB / 272.2 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.004045, allocations: 202.1 kB / 272.4 MB, free: 6.566 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00033/0.004375, allocations: 498.9 kB / 272.9 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.004499, allocations: 48.86 kB / 273 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002231/0.004722, allocations: 295.5 kB / 273.2 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.004918, allocations: 195.5 kB / 273.4 MB, free: 5.547 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/0.004963, allocations: 40.69 kB / 273.5 MB, free: 5.508 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.005077, allocations: 91.83 kB / 273.6 MB, free: 5.418 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.145e-05/0.005159, allocations: 113.3 kB / 273.7 MB, free: 5.309 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.912e-05/0.005248, allocations: 123.7 kB / 273.8 MB, free: 5.188 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003152/0.005563, allocations: 374.9 kB / 274.2 MB, free: 4.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.005565, allocations: 0 / 274.2 MB, free: 4.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.005566, allocations: 0 / 274.2 MB, free: 4.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.00557, allocations: 0.7188 kB / 274.2 MB, free: 4.82 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.0006803/0.00625, allocations: 0.6739 MB / 274.8 MB, free: 4.109 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.818e-05/0.006278, allocations: 16.03 kB / 274.9 MB, free: 4.094 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.394e-05/0.006362, allocations: 56.69 kB / 274.9 MB, free: 4.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.00659, allocations: 232.9 kB / 275.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.006615, allocations: 21.03 kB / 275.2 MB, free: 3.766 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.006657, allocations: 32.36 kB / 275.2 MB, free: 3.734 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.006989, allocations: 283.1 kB / 275.5 MB, free: 3.453 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.007006, allocations: 12.11 kB / 275.5 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.00703, allocations: 12.38 kB / 275.5 MB, free: 3.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.007036, allocations: 8.375 kB / 275.5 MB, free: 3.422 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002493/0.007286, allocations: 208.3 kB / 275.7 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009647/0.00825, allocations: 0.8823 MB / 276.6 MB, free: 2.281 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.008476, allocations: 180.6 kB / 276.8 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.008592, allocations: 108.6 kB / 276.9 MB, free: 1.98 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.00862, allocations: 4 kB / 276.9 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.008642, allocations: 45.31 kB / 276.9 MB, free: 1.922 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.473e-06/0.008643, allocations: 0 / 276.9 MB, free: 1.922 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.001936/0.01058, allocations: 1.259 MB / 278.2 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.01061, allocations: 59.41 kB / 278.2 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.01074, allocations: 268.2 kB / 278.5 MB, free: 252 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.01078, allocations: 41.7 kB / 278.5 MB, free: 204 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.01093, allocations: 203.7 kB / 278.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.764e-05/0.01102, allocations: 166.6 kB / 278.9 MB, free: 15.83 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.01112, allocations: 103.7 kB / 279 MB, free: 15.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.01124, allocations: 0.5079 MB / 279.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.01138, allocations: 100.9 kB / 279.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.01154, allocations: 206.8 kB / 279.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.01177, allocations: 261.3 kB / 280.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01177, allocations: 3.938 kB / 280.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009474/0.01272, allocations: 488.5 kB / 280.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.01273, allocations: 15.94 kB / 280.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.01274, allocations: 0 / 280.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004431/0.01318, allocations: 411 kB / 281 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.01333, allocations: 75.97 kB / 281 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007075/0.01404, allocations: 1.752 MB / 282.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.01419, allocations: 43.95 kB / 282.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.01422, allocations: 20.05 kB / 282.8 MB, free: 11.7 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.01435, allocations: 193.3 kB / 283 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.01442, allocations: 47.81 kB / 283.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.01447, allocations: 47.3 kB / 283.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.01447, allocations: 8 kB / 283.1 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.01448, allocations: 7.922 kB / 283.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01448, allocations: 3.984 kB / 283.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.01597, allocations: 1.013 MB / 284.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.01597, allocations: 4 kB / 284.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.01611, allocations: 59.91 kB / 284.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003812/0.01649, allocations: 399.2 kB / 284.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.01652, allocations: 19.97 kB / 284.6 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006659/0.01719, allocations: 1.744 MB / 286.4 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.01719, allocations: 8 kB / 286.4 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007536/0.01794, allocations: 0.7338 MB / 287.1 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.992e-05/0.01804, allocations: 79.72 kB / 287.2 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.01809, allocations: 23.94 kB / 287.2 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.01821, allocations: 27.97 kB / 287.2 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.01832, allocations: 83.83 kB / 287.3 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/0.01834, allocations: 19.97 kB / 287.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.845e-05/0.01841, allocations: 181.1 kB / 287.5 MB, free: 6.828 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01841, allocations: 0 / 287.5 MB, free: 6.828 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002745/0.01869, allocations: 104 kB / 287.6 MB, free: 6.727 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.0001514/0.01884, allocations: 158.1 kB / 287.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004282/0.01927, allocations: 325.5 kB / 288.1 MB, free: 6.242 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01927, allocations: 0 / 288.1 MB, free: 6.242 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002159/0.01948, allocations: 201.9 kB / 288.3 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.01979, allocations: 80.75 kB / 288.4 MB, free: 5.965 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.02085, allocations: 0.8367 MB / 289.2 MB, free: 5.074 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.533e-05/0.02093, allocations: 97.28 kB / 289.3 MB, free: 4.961 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.834e-05/0.02102, allocations: 30.97 kB / 289.3 MB, free: 4.934 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.02114, allocations: 126.2 kB / 289.5 MB, free: 4.809 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02114, allocations: 4 kB / 289.5 MB, free: 4.805 MB / 266.7 MB Notification: Performance of Templates: time 0.008985/0.03012, allocations: 8.24 MB / 297.7 MB, free: 12.65 MB / 282.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.9851718060672283]