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.001806/0.001806, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002314/0.002314, allocations: 215.5 kB / 24.48 MB, free: 3.957 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.476/1.476, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.002199/0.002199, allocations: 51.92 kB / 379 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3373, allocations: 53.37 MB / 432.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.005153/0.3425, allocations: 2.153 MB / 434.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.3445, allocations: 0.7206 MB / 435.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.3446, allocations: 7.938 kB / 435.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.3448, allocations: 39.59 kB / 435.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003986/0.3452, allocations: 95.27 kB / 435.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004847/0.3457, allocations: 107.8 kB / 435.4 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005064/0.3462, allocations: 294.6 kB / 435.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.3464, allocations: 48.23 kB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.3466, allocations: 111.6 kB / 435.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.3469, allocations: 123.5 kB / 436 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/0.3469, allocations: 24 kB / 436 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.576e-05/0.347, allocations: 20 kB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.35e-05/0.3471, allocations: 47.78 kB / 436.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.3472, allocations: 107.5 kB / 436.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004458/0.3477, allocations: 261.9 kB / 436.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.3477, allocations: 3.984 kB / 436.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3477, allocations: 0 / 436.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.3477, allocations: 0 / 436.5 MB, free: 2.52 MB / 334.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.001092/0.3488, allocations: 461.5 kB / 436.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3488, allocations: 16.03 kB / 436.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.933e-05/0.3489, allocations: 28.75 kB / 437 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005011/0.3494, allocations: 194.9 kB / 437.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.3495, allocations: 12.81 kB / 437.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.426e-05/0.3495, allocations: 28.31 kB / 437.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006174/0.3502, allocations: 239 kB / 437.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.3502, allocations: 7.938 kB / 437.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.3502, allocations: 15.94 kB / 437.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3502, allocations: 8 kB / 437.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004536/0.3507, allocations: 135.8 kB / 437.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.3525, allocations: 0.9156 MB / 438.5 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006495/0.3531, allocations: 198.4 kB / 438.7 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/0.3533, allocations: 63.48 kB / 438.8 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.3534, allocations: 4 kB / 438.8 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.34e-05/0.3534, allocations: 42.55 kB / 438.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.3534, allocations: 0 / 438.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000818/0.3543, allocations: 201.9 kB / 439 MB, free: 15.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.76e-05/0.3544, allocations: 136.5 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.3546, allocations: 195.1 kB / 439.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.3546, allocations: 29.7 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.3548, allocations: 168.2 kB / 439.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.8e-05/0.3549, allocations: 71.42 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.355, allocations: 49.7 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.3552, allocations: 330.8 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.3554, allocations: 59.95 kB / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003418/0.3557, allocations: 165.6 kB / 440.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005632/0.3563, allocations: 229.5 kB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3563, allocations: 4 kB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007513/0.3571, allocations: 261.5 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.3571, allocations: 8 kB / 440.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.3571, allocations: 0 / 440.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.3571, allocations: 15.88 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004459/0.3576, allocations: 67.89 kB / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.3576, allocations: 4 kB / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.3578, allocations: 27.92 kB / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.3579, allocations: 12.28 kB / 440.8 MB, free: 13.81 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 0.0001855/0.358, allocations: 141.8 kB / 440.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.3582, allocations: 27.84 kB / 441 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.517e-05/0.3583, allocations: 28.91 kB / 441 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3583, allocations: 0 / 441 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.3583, allocations: 4 kB / 441 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-06/0.3583, allocations: 3.984 kB / 441 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00062/0.3589, allocations: 185.2 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3589, allocations: 0 / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004975/0.3594, allocations: 55.91 kB / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.3594, allocations: 4 kB / 441.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.3595, allocations: 8 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.249e-06/0.3595, allocations: 3.938 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3595, allocations: 0 / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009232/0.3604, allocations: 0.531 MB / 441.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/0.3604, allocations: 19.86 kB / 441.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.828e-05/0.3605, allocations: 11.92 kB / 441.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/0.3609, allocations: 8 kB / 441.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.609e-05/0.361, allocations: 15.97 kB / 441.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.361, allocations: 4 kB / 441.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.3612, allocations: 144.5 kB / 442 MB, free: 12.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3612, allocations: 0 / 442 MB, free: 12.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008581/0.362, allocations: 59.89 kB / 442 MB, free: 12.52 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.0001579/0.3622, allocations: 105.8 kB / 442.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005739/0.3628, allocations: 160.7 kB / 442.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3628, allocations: 4.188 kB / 442.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.363, allocations: 59.91 kB / 442.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.3642, allocations: 51.09 kB / 442.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.3663, allocations: 0.86 MB / 443.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.3666, allocations: 134.2 kB / 443.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.3667, allocations: 27.42 kB / 443.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3667, allocations: 4 kB / 443.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of Templates: time 0.007467/0.3741, allocations: 2.938 MB / 446.4 MB, free: 8.121 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: 7.890625188010745]