Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 84.34 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009768/0.0009768, allocations: 161.3 kB / 25.61 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.962/0.962, allocations: 177 MB / 205.9 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.271e-05, allocations: 2.312 kB / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00297/0.002992, allocations: 2.553 MB / 276.7 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00091/0.003902, allocations: 0.5727 MB / 277.2 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.004055, allocations: 7.938 kB / 277.2 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003417/0.004397, allocations: 71.98 kB / 277.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002903/0.004687, allocations: 141 kB / 277.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000277/0.004964, allocations: 165.3 kB / 277.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003988/0.005363, allocations: 0.5185 MB / 278.1 MB, free: 280 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.005501, allocations: 54.14 kB / 278.2 MB, free: 228 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.005783, allocations: 315.4 kB / 278.5 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.006027, allocations: 211.5 kB / 278.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.278e-05/0.00608, allocations: 40 kB / 278.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.00623, allocations: 92.67 kB / 278.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.00636, allocations: 119.6 kB / 278.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.006464, allocations: 139.7 kB / 279.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004042/0.006868, allocations: 414.5 kB / 279.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.006871, allocations: 0 / 279.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.006872, allocations: 0 / 279.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.006877, allocations: 4 kB / 279.5 MB, free: 14.91 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.0008238/0.007701, allocations: 0.7216 MB / 280.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.007735, allocations: 12.03 kB / 280.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.007835, allocations: 60.7 kB / 280.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.008106, allocations: 248.7 kB / 280.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.008135, allocations: 25.02 kB / 280.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.257e-05/0.008188, allocations: 32.38 kB / 280.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.008533, allocations: 270.5 kB / 280.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.008549, allocations: 8.125 kB / 280.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.008576, allocations: 12.38 kB / 280.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.008584, allocations: 8.375 kB / 280.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.008848, allocations: 198.9 kB / 281.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.009905, allocations: 0.9013 MB / 282 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.01017, allocations: 212.1 kB / 282.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.01029, allocations: 95.64 kB / 282.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.01032, allocations: 8 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.01034, allocations: 41.39 kB / 282.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.913e-06/0.01034, allocations: 0 / 282.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002088/0.01243, allocations: 1.252 MB / 283.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.01246, allocations: 59.89 kB / 283.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.01262, allocations: 276.2 kB / 283.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.01266, allocations: 45.69 kB / 283.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.602e-05/0.01274, allocations: 203.7 kB / 284.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.655e-05/0.01284, allocations: 174.6 kB / 284.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.01295, allocations: 103.9 kB / 284.4 MB, free: 9.715 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.01307, allocations: 0.5117 MB / 284.9 MB, free: 9.191 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.01322, allocations: 97.23 kB / 285 MB, free: 9.094 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.01337, allocations: 192.4 kB / 285.2 MB, free: 8.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/0.0136, allocations: 253.3 kB / 285.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.0136, allocations: 0 / 285.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0005061/0.01411, allocations: 444.5 kB / 285.9 MB, free: 8.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.01412, allocations: 8 kB / 285.9 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.01413, allocations: 3.938 kB / 285.9 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003557/0.01449, allocations: 259.3 kB / 286.1 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.01464, allocations: 83.78 kB / 286.2 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008045/0.01544, allocations: 1.717 MB / 287.9 MB, free: 6.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.01563, allocations: 47.94 kB / 288 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.01565, allocations: 16 kB / 288 MB, free: 5.949 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.0001507/0.0158, allocations: 192.5 kB / 288.2 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.667e-05/0.01588, allocations: 47.77 kB / 288.2 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.76e-05/0.01595, allocations: 51.62 kB / 288.3 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.01595, allocations: 7.984 kB / 288.3 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.01596, allocations: 48 / 288.3 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.01597, allocations: 7.922 kB / 288.3 MB, free: 5.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.01728, allocations: 1.005 MB / 289.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.01729, allocations: 0 / 289.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.01743, allocations: 63.91 kB / 289.4 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003061/0.01774, allocations: 247.3 kB / 289.6 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/0.01777, allocations: 20.05 kB / 289.6 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007336/0.0185, allocations: 1.725 MB / 291.4 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.01851, allocations: 4 kB / 291.4 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007502/0.01926, allocations: 0.7014 MB / 292.1 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.01937, allocations: 83.7 kB / 292.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.13e-05/0.01942, allocations: 20 kB / 292.2 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.01955, allocations: 27.91 kB / 292.2 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.01968, allocations: 99.77 kB / 292.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.01971, allocations: 15.98 kB / 292.3 MB, free: 1.449 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.998e-05/0.0198, allocations: 189.1 kB / 292.5 MB, free: 1.262 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0198, allocations: 0 / 292.5 MB, free: 1.262 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003196/0.02012, allocations: 99.98 kB / 292.6 MB, free: 1.164 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007044/0.02082, allocations: 360.3 kB / 292.9 MB, free: 0.918 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004803/0.0213, allocations: 333.1 kB / 293.3 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.0213, allocations: 320 / 293.3 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002252/0.02153, allocations: 206 kB / 293.5 MB, free: 396 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.02188, allocations: 96.25 kB / 293.6 MB, free: 300 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.02314, allocations: 0.8956 MB / 294.5 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.508e-05/0.02321, allocations: 105.3 kB / 294.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.171e-05/0.0233, allocations: 34.95 kB / 294.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.02345, allocations: 134.2 kB / 294.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02345, allocations: 0 / 294.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of Templates: time 0.009966/0.03342, allocations: 8.273 MB / 303 MB, free: 6.855 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.9630518378689885]