Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.001347/0.001347, allocations: 116 kB / 18.45 MB, free: 4.605 MB / 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.0015/0.0015, allocations: 208.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.535/1.535, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 43.94 kB / 374.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1237, allocations: 53.34 MB / 427.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003691/0.1274, allocations: 2.286 MB / 429.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.1288, allocations: 0.7635 MB / 430.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1289, allocations: 7.938 kB / 430.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.1291, allocations: 39.59 kB / 430.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.1293, allocations: 83.33 kB / 430.7 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.1297, allocations: 115.7 kB / 430.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003627/0.13, allocations: 294.6 kB / 431.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.1302, allocations: 44.39 kB / 431.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.1303, allocations: 111.6 kB / 431.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.1305, allocations: 123.4 kB / 431.3 MB, free: 420 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.556e-05/0.1305, allocations: 20 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.986e-05/0.1306, allocations: 20 kB / 431.4 MB, free: 380 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.689e-05/0.1306, allocations: 47.84 kB / 431.4 MB, free: 332 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.1308, allocations: 127.3 kB / 431.5 MB, free: 204 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.242/0.3728, allocations: 260.5 kB / 431.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/0.3728, allocations: 0.5625 kB / 431.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3728, allocations: 0.9062 kB / 431.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.051e-05/0.3728, allocations: 0.5625 kB / 431.8 MB, free: 8.648 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008357/0.3736, allocations: 0.5209 MB / 432.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3737, allocations: 12.17 kB / 432.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.001e-05/0.3738, allocations: 34.34 kB / 432.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.3741, allocations: 258.3 kB / 432.6 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.3741, allocations: 19.38 kB / 432.6 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.3742, allocations: 23.97 kB / 432.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004273/0.3746, allocations: 238.1 kB / 432.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.3746, allocations: 13.23 kB / 432.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.3747, allocations: 7.562 kB / 432.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.3747, allocations: 7.656 kB / 432.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003603/0.375, allocations: 149.8 kB / 433.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.3762, allocations: 1.048 MB / 434.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.3766, allocations: 208.8 kB / 434.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.3767, allocations: 66.5 kB / 434.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.3768, allocations: 1.797 kB / 434.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.3768, allocations: 46.16 kB / 434.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.3768, allocations: 0 / 434.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005303/0.3773, allocations: 197.5 kB / 434.6 MB, free: 7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.3774, allocations: 141.3 kB / 434.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.3775, allocations: 190 kB / 434.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.3775, allocations: 30.17 kB / 435 MB, free: 6.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.022e-05/0.3776, allocations: 164.6 kB / 435.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.985e-05/0.3776, allocations: 68.91 kB / 435.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.969e-05/0.3777, allocations: 54.08 kB / 435.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.249e-05/0.3778, allocations: 329.2 kB / 435.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.3779, allocations: 54.27 kB / 435.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.3781, allocations: 165.5 kB / 435.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.3784, allocations: 233.6 kB / 436 MB, free: 5.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3784, allocations: 1.062 kB / 436 MB, free: 5.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004514/0.3788, allocations: 261.2 kB / 436.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3789, allocations: 7.219 kB / 436.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.3789, allocations: 8.375 kB / 436.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.3789, allocations: 5.312 kB / 436.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.3792, allocations: 70.38 kB / 436.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3792, allocations: 8.219 kB / 436.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.3793, allocations: 26.5 kB / 436.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.3793, allocations: 10.56 kB / 436.4 MB, free: 5.883 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.803e-05/0.3794, allocations: 145.7 kB / 436.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.3795, allocations: 20.03 kB / 436.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.096e-05/0.3796, allocations: 32.16 kB / 436.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3796, allocations: 4.375 kB / 436.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3796, allocations: 1.594 kB / 436.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3796, allocations: 1.156 kB / 436.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003873/0.38, allocations: 267.8 kB / 436.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.38, allocations: 1.094 kB / 436.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.3802, allocations: 52.59 kB / 436.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.3802, allocations: 10.83 kB / 436.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.3803, allocations: 8.75 kB / 436.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3803, allocations: 1.438 kB / 436.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3803, allocations: 1.281 kB / 436.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000484/0.3808, allocations: 0.5216 MB / 437.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.979e-05/0.3808, allocations: 101 kB / 437.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.3808, allocations: 9.688 kB / 437.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.381, allocations: 9.562 kB / 437.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.561e-05/0.3811, allocations: 10.08 kB / 437.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3811, allocations: 8.828 kB / 437.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.3812, allocations: 140.5 kB / 437.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3812, allocations: 3.188 kB / 437.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004533/0.3817, allocations: 66.03 kB / 437.8 MB, free: 4.973 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001051/0.3818, allocations: 107.2 kB / 437.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003824/0.3821, allocations: 144.5 kB / 438 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3821, allocations: 0.75 kB / 438.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.3823, allocations: 67.11 kB / 438.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.383, allocations: 57.72 kB / 438.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.3842, allocations: 0.8526 MB / 439 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.3845, allocations: 0.7457 MB / 439.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.692e-05/0.3845, allocations: 26.67 kB / 439.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3845, allocations: 1.312 kB / 439.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of Templates: time 0.006301/0.3908, allocations: 2.845 MB / 442.6 MB, free: 3.285 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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: 8.038239433022682]