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.00167/0.00167, allocations: 103.6 kB / 21.18 MB, free: 332 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.001965/0.001965, allocations: 209.4 kB / 24.47 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.494/1.494, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 51.92 kB / 347.7 MB, free: 9.395 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3374, allocations: 49.16 MB / 396.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003956/0.3414, allocations: 2.286 MB / 399.1 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.3425, allocations: 499.5 kB / 399.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.3427, allocations: 2.719 kB / 399.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.343, allocations: 48.42 kB / 399.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001741/0.3431, allocations: 90.61 kB / 399.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.3438, allocations: 191.5 kB / 399.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006805/0.3445, allocations: 498 kB / 400.4 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.3447, allocations: 52.62 kB / 400.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.3451, allocations: 211.5 kB / 400.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.3455, allocations: 224.5 kB / 400.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.541e-05/0.3456, allocations: 45.78 kB / 400.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.3459, allocations: 84.59 kB / 401 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.3461, allocations: 108.2 kB / 401.1 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.3463, allocations: 155.7 kB / 401.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007316/0.3471, allocations: 465.8 kB / 401.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.3471, allocations: 2.344 kB / 401.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3471, allocations: 0 / 401.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.3471, allocations: 3.938 kB / 401.7 MB, free: 6.543 MB / 318.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.001353/0.3484, allocations: 0.5953 MB / 402.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.3485, allocations: 8.875 kB / 402.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.3486, allocations: 38.02 kB / 402.4 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004622/0.3491, allocations: 230 kB / 402.6 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/0.3491, allocations: 25.06 kB / 402.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.418e-05/0.3492, allocations: 31.27 kB / 402.7 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008273/0.35, allocations: 386 kB / 403 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.35, allocations: 1.891 kB / 403 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.3501, allocations: 14.06 kB / 403.1 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.3501, allocations: 6.906 kB / 403.1 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008722/0.351, allocations: 400.2 kB / 403.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.3529, allocations: 0.939 MB / 404.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005728/0.3535, allocations: 275.8 kB / 404.7 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004013/0.3539, allocations: 186 kB / 404.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.3539, allocations: 4.469 kB / 404.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.3539, allocations: 45.47 kB / 404.9 MB, free: 4.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.433e-06/0.3539, allocations: 0 / 404.9 MB, free: 4.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00455/0.3585, allocations: 1.732 MB / 406.6 MB, free: 4.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.3585, allocations: 55.53 kB / 406.7 MB, free: 3.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.3588, allocations: 231.7 kB / 406.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.3588, allocations: 40.42 kB / 406.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/0.3589, allocations: 156.9 kB / 407.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.359, allocations: 162.4 kB / 407.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.3592, allocations: 100.4 kB / 407.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.725e-05/0.3593, allocations: 338.6 kB / 407.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.3597, allocations: 210.1 kB / 407.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004598/0.3602, allocations: 288.4 kB / 408.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006437/0.3608, allocations: 375.6 kB / 408.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3608, allocations: 0 / 408.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001476/0.3623, allocations: 0.6931 MB / 409.2 MB, free: 2.418 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3623, allocations: 6.062 kB / 409.2 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3623, allocations: 7.453 kB / 409.2 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008374/0.3631, allocations: 0.4889 MB / 409.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.3634, allocations: 67.66 kB / 409.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.3645, allocations: 1.392 MB / 411.2 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004043/0.3649, allocations: 63.83 kB / 411.3 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.797e-05/0.365, allocations: 21.61 kB / 411.3 MB, free: 0.9531 MB / 318.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.0001776/0.3651, allocations: 158.3 kB / 411.4 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.3652, allocations: 37.38 kB / 411.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.983e-05/0.3653, allocations: 48.98 kB / 411.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3653, allocations: 4.406 kB / 411.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3653, allocations: 1.188 kB / 411.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.3653, allocations: 3.984 kB / 411.5 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/0.368, allocations: 1.228 MB / 412.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/0.368, allocations: 5.188 kB / 412.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.3682, allocations: 59.19 kB / 412.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007995/0.369, allocations: 464.5 kB / 413.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.3691, allocations: 17.56 kB / 413.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.3704, allocations: 1.335 MB / 414.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3704, allocations: 1.5 kB / 414.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002007/0.3724, allocations: 0.9443 MB / 415.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.3726, allocations: 75.17 kB / 415.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.136e-05/0.3727, allocations: 18.67 kB / 415.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.373, allocations: 35.23 kB / 415.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.3732, allocations: 92.02 kB / 415.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.714e-05/0.3733, allocations: 30.77 kB / 415.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001827/0.3734, allocations: 163.3 kB / 416 MB, free: 13.63 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3734, allocations: 0 / 416 MB, free: 13.63 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005096/0.3739, allocations: 108.6 kB / 416.1 MB, free: 13.61 MB / 334.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.0002449/0.3742, allocations: 126.8 kB / 416.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.3753, allocations: 484.5 kB / 416.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3753, allocations: 1.344 kB / 416.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006273/0.3759, allocations: 288.4 kB / 417 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.3764, allocations: 50.53 kB / 417 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.3788, allocations: 0.9775 MB / 418 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.379, allocations: 171 kB / 418.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.3792, allocations: 31.47 kB / 418.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.65e-05/0.3793, allocations: 33.53 kB / 418.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3793, allocations: 6.125 kB / 418.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Templates: time 0.01401/0.3933, allocations: 7.613 MB / 425.8 MB, free: 5.594 MB / 334.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: 5.129949200898409]