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.001323/0.001323, allocations: 85.83 kB / 21.44 MB, free: 296 kB / 14.72 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.001351/0.001351, allocations: 164.3 kB / 24.7 MB, free: 3.547 MB / 14.72 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 1.445/1.445, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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.844e-06/1.844e-06, allocations: 0 / 298.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.764e-05/2.949e-05, allocations: 6.281 kB / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003791/0.003821, allocations: 2.279 MB / 301.2 MB, free: 6.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.004928, allocations: 0.4883 MB / 301.7 MB, free: 5.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.005045, allocations: 7.938 kB / 301.7 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.005266, allocations: 47.52 kB / 301.8 MB, free: 5.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.005466, allocations: 91.2 kB / 301.8 MB, free: 5.797 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005831/0.006049, allocations: 199.6 kB / 302 MB, free: 5.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006107/0.006659, allocations: 0.4949 MB / 302.5 MB, free: 5.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.006818, allocations: 44.81 kB / 302.6 MB, free: 5.066 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004031/0.007222, allocations: 295.5 kB / 302.9 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000336/0.007558, allocations: 203.5 kB / 303.1 MB, free: 4.578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.712e-05/0.007635, allocations: 36 kB / 303.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.007822, allocations: 91.89 kB / 303.2 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.00797, allocations: 95.7 kB / 303.3 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.008146, allocations: 131.7 kB / 303.4 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006648/0.008811, allocations: 0.5024 MB / 303.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.008815, allocations: 0 / 303.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.008816, allocations: 0 / 303.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.00883, allocations: 7.922 kB / 303.9 MB, free: 3.719 MB / 286.1 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.001424/0.01025, allocations: 0.5948 MB / 304.5 MB, free: 3.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.01029, allocations: 8.031 kB / 304.5 MB, free: 3.082 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.671e-05/0.01039, allocations: 36.7 kB / 304.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.01084, allocations: 226.2 kB / 304.8 MB, free: 2.801 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/0.01088, allocations: 25.03 kB / 304.8 MB, free: 2.777 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.97e-05/0.01096, allocations: 32.33 kB / 304.8 MB, free: 2.746 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007654/0.01172, allocations: 382.5 kB / 305.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.01174, allocations: 192 / 305.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.454e-05/0.01179, allocations: 12.38 kB / 305.2 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.01179, allocations: 4.375 kB / 305.2 MB, free: 2.348 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008244/0.01262, allocations: 410.2 kB / 305.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.01455, allocations: 0.9526 MB / 306.6 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005879/0.01514, allocations: 276.1 kB / 306.9 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.01552, allocations: 185.8 kB / 307 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-05/0.01556, allocations: 4 kB / 307 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.01559, allocations: 42.5 kB / 307.1 MB, free: 436 kB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.793e-06/0.0156, allocations: 0 / 307.1 MB, free: 436 kB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004956/0.02055, allocations: 1.738 MB / 308.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.02061, allocations: 59.41 kB / 308.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003876/0.021, allocations: 229.7 kB / 309.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.236e-05/0.02106, allocations: 41.7 kB / 309.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.02121, allocations: 149 kB / 309.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.02137, allocations: 162.7 kB / 309.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.02157, allocations: 98.12 kB / 309.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.02177, allocations: 342.8 kB / 309.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.02222, allocations: 204.9 kB / 310.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005408/0.02276, allocations: 284.2 kB / 310.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007563/0.02352, allocations: 378.7 kB / 310.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.02352, allocations: 0 / 310.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001758/0.02528, allocations: 0.7018 MB / 311.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.0253, allocations: 6.812 kB / 311.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.02531, allocations: 4 kB / 311.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00099/0.0263, allocations: 497.5 kB / 311.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.02661, allocations: 67.91 kB / 312 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.02814, allocations: 1.401 MB / 313.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004605/0.0286, allocations: 72.06 kB / 313.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.928e-05/0.02865, allocations: 23.94 kB / 313.5 MB, free: 9.793 MB / 302.1 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.000343/0.02899, allocations: 157.5 kB / 313.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.849e-05/0.02908, allocations: 35.75 kB / 313.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.02927, allocations: 55.3 kB / 313.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.02928, allocations: 7.938 kB / 313.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.02929, allocations: 0 / 313.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.0293, allocations: 0 / 313.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003036/0.03233, allocations: 1.195 MB / 314.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.03234, allocations: 4 kB / 314.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.03264, allocations: 64.12 kB / 315 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008454/0.03348, allocations: 469.3 kB / 315.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.954e-05/0.03353, allocations: 19.98 kB / 315.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001618/0.03515, allocations: 1.339 MB / 316.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.03515, allocations: 0 / 316.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/0.03728, allocations: 0.937 MB / 317.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.03748, allocations: 79.72 kB / 317.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.593e-05/0.03757, allocations: 16 kB / 317.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.03789, allocations: 35.95 kB / 317.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.03813, allocations: 91.77 kB / 318 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-05/0.03819, allocations: 23.97 kB / 318 MB, free: 5.121 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.03837, allocations: 165.2 kB / 318.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.03837, allocations: 4 kB / 318.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004956/0.03887, allocations: 100 kB / 318.3 MB, free: 4.855 MB / 302.1 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.0002758/0.03915, allocations: 143.1 kB / 318.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.04037, allocations: 486.6 kB / 318.9 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.04037, allocations: 320 / 318.9 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008593/0.04123, allocations: 287.7 kB / 319.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.04176, allocations: 44.95 kB / 319.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.04409, allocations: 0.875 MB / 320.1 MB, free: 2.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.04428, allocations: 173.8 kB / 320.2 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.04442, allocations: 30.97 kB / 320.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.662e-05/0.04451, allocations: 36.48 kB / 320.3 MB, free: 2.734 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.04451, allocations: 7.938 kB / 320.3 MB, free: 2.727 MB / 302.1 MB Notification: Performance of Templates: time 0.1498/0.1944, allocations: 7.251 MB / 327.6 MB, free: 34.6 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.698828849941492]