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.00167/0.00167, allocations: 111 kB / 21.18 MB, free: 0.668 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.002091/0.002091, allocations: 209.2 kB / 24.47 MB, free: 3.969 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 2.247/2.247, allocations: 230.6 MB / 258.2 MB, free: 7.801 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.001881/0.001881, allocations: 43.92 kB / 378.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3421, allocations: 53.38 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004601/0.3467, allocations: 2.145 MB / 434.5 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.3487, allocations: 0.7206 MB / 435.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/0.3489, allocations: 7.938 kB / 435.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.3491, allocations: 39.58 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000453/0.3496, allocations: 87.33 kB / 435.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.3502, allocations: 119.7 kB / 435.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000492/0.3507, allocations: 298.6 kB / 435.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.3509, allocations: 47.5 kB / 435.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001975/0.3511, allocations: 115.6 kB / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.3513, allocations: 119.4 kB / 436 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.788e-05/0.3513, allocations: 20 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.882e-05/0.3514, allocations: 20 kB / 436 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.975e-05/0.3515, allocations: 51.83 kB / 436.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.3516, allocations: 107.5 kB / 436.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004461/0.3521, allocations: 266.6 kB / 436.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3521, allocations: 0 / 436.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3521, allocations: 0 / 436.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.3521, allocations: 0 / 436.5 MB, free: 2.574 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.001134/0.3532, allocations: 457.5 kB / 436.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/0.3533, allocations: 8.031 kB / 436.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.567e-05/0.3534, allocations: 32.73 kB / 437 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.3539, allocations: 202.8 kB / 437.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.3539, allocations: 16.81 kB / 437.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-05/0.354, allocations: 24.38 kB / 437.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006575/0.3547, allocations: 239 kB / 437.4 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/0.3547, allocations: 7.891 kB / 437.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.3547, allocations: 8 kB / 437.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.3548, allocations: 4 kB / 437.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/0.3553, allocations: 139.9 kB / 437.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.3572, allocations: 0.9156 MB / 438.5 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006582/0.3579, allocations: 202.4 kB / 438.7 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.3581, allocations: 71.41 kB / 438.8 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.3581, allocations: 7.938 kB / 438.8 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.3581, allocations: 34.56 kB / 438.8 MB, free: 44 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.695e-06/0.3581, allocations: 0 / 438.8 MB, free: 44 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009756/0.3591, allocations: 201.3 kB / 439 MB, free: 15.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.3592, allocations: 136.4 kB / 439.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.3595, allocations: 195.2 kB / 439.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.3596, allocations: 29.7 kB / 439.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.3597, allocations: 172.2 kB / 439.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.326e-05/0.3598, allocations: 63.44 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.3599, allocations: 49.7 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002061/0.3602, allocations: 330.8 kB / 440 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.3604, allocations: 59.95 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.3607, allocations: 161.6 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005695/0.3613, allocations: 237.5 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3613, allocations: 0 / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007458/0.362, allocations: 261.1 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3621, allocations: 8.375 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3621, allocations: 8 kB / 440.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.817e-05/0.3621, allocations: 7.938 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004122/0.3625, allocations: 63.91 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.3625, allocations: 8 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.3628, allocations: 27.81 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/0.3628, allocations: 16 kB / 440.8 MB, free: 13.87 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.0001934/0.363, allocations: 133.7 kB / 440.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.3632, allocations: 23.86 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.066e-05/0.3633, allocations: 28.95 kB / 441 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3633, allocations: 8 kB / 441 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3633, allocations: 256 / 441 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3633, allocations: 0 / 441 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006222/0.3639, allocations: 189.2 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.3639, allocations: 4 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005058/0.3644, allocations: 51.95 kB / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.3644, allocations: 0 / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.163e-05/0.3644, allocations: 8 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.3645, allocations: 3.938 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.3645, allocations: 11.88 kB / 441.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009301/0.3654, allocations: 0.5245 MB / 441.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.653e-05/0.3654, allocations: 20.61 kB / 441.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.071e-05/0.3655, allocations: 11.94 kB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.3659, allocations: 0 / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.572e-05/0.3659, allocations: 19.97 kB / 441.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.3659, allocations: 4 kB / 441.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.3662, allocations: 140.4 kB / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3662, allocations: 0 / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007684/0.3669, allocations: 63.89 kB / 442 MB, free: 12.58 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.0001536/0.3671, allocations: 101.3 kB / 442.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005841/0.3677, allocations: 163.7 kB / 442.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3677, allocations: 0 / 442.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.3679, allocations: 72.59 kB / 442.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.369, allocations: 57.27 kB / 442.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.3712, allocations: 0.8278 MB / 443.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.3714, allocations: 138.2 kB / 443.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.3715, allocations: 22.3 kB / 443.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.381e-05/0.3716, allocations: 23.42 kB / 443.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3716, allocations: 0 / 443.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of Templates: time 0.01114/0.3827, allocations: 2.702 MB / 446.1 MB, free: 8.465 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 -s cvode -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.3643586819962366]