Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008092/0.0008092, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003431/0.003431, allocations: 160.6 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8399/0.8399, allocations: 177 MB / 204.9 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 325.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/1.978e-05, allocations: 3.125 kB / 325.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002206/0.002226, allocations: 2.15 MB / 327.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009331/0.003159, allocations: 0.7244 MB / 328.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.777e-05/0.003256, allocations: 11.94 kB / 328.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.003369, allocations: 35.66 kB / 328.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.003578, allocations: 91.14 kB / 328.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.00383, allocations: 115.7 kB / 328.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.004071, allocations: 314.4 kB / 329.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.004193, allocations: 44.56 kB / 329.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.004323, allocations: 159.6 kB / 329.4 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.004425, allocations: 91.75 kB / 329.5 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.004451, allocations: 20 kB / 329.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.166e-05/0.004473, allocations: 20 kB / 329.5 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.387e-05/0.004507, allocations: 51.77 kB / 329.6 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.966e-05/0.004566, allocations: 87.75 kB / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.004786, allocations: 267.1 kB / 329.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.004788, allocations: 3.938 kB / 329.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.004789, allocations: 0 / 329.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.004794, allocations: 0 / 329.9 MB, free: 11.09 MB / 298.7 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.000525/0.005319, allocations: 461.6 kB / 330.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.005352, allocations: 15.98 kB / 330.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.005397, allocations: 32.73 kB / 330.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.005644, allocations: 189.3 kB / 330.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.005662, allocations: 16.88 kB / 330.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.005698, allocations: 28.36 kB / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.005963, allocations: 232 kB / 330.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.005978, allocations: 8.141 kB / 330.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.005994, allocations: 12.38 kB / 330.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.006001, allocations: 11.94 kB / 330.9 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.00619, allocations: 139.8 kB / 331 MB, free: 9.895 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007701/0.006961, allocations: 0.9122 MB / 332 MB, free: 8.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.007219, allocations: 206.4 kB / 332.2 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.465e-05/0.007294, allocations: 63.45 kB / 332.2 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.00731, allocations: 8 kB / 332.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.007331, allocations: 42.5 kB / 332.3 MB, free: 8.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.482e-06/0.007333, allocations: 0 / 332.3 MB, free: 8.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003332/0.007666, allocations: 189.4 kB / 332.5 MB, free: 8.352 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.007714, allocations: 140.4 kB / 332.6 MB, free: 8.184 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.007837, allocations: 206.2 kB / 332.8 MB, free: 7.969 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.00785, allocations: 25.7 kB / 332.8 MB, free: 7.938 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.033e-05/0.00792, allocations: 168.2 kB / 333 MB, free: 7.766 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.007955, allocations: 67.39 kB / 333 MB, free: 7.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/0.008005, allocations: 57.7 kB / 333.1 MB, free: 7.637 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.915e-05/0.008084, allocations: 330.8 kB / 333.4 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.2e-05/0.008166, allocations: 51.97 kB / 333.5 MB, free: 7.254 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.008281, allocations: 157.7 kB / 333.6 MB, free: 7.051 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.008492, allocations: 233.5 kB / 333.9 MB, free: 6.773 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.008495, allocations: 11.88 kB / 333.9 MB, free: 6.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000269/0.008764, allocations: 257.2 kB / 334.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.008776, allocations: 4 kB / 334.1 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.008783, allocations: 7.984 kB / 334.1 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.008797, allocations: 8 kB / 334.1 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.008946, allocations: 71.84 kB / 334.2 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.008954, allocations: 7.938 kB / 334.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.08e-05/0.009025, allocations: 20.27 kB / 334.2 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.009038, allocations: 19.98 kB / 334.3 MB, free: 6.367 MB / 298.7 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 7.945e-05/0.009118, allocations: 141.7 kB / 334.4 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.009162, allocations: 19.86 kB / 334.4 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.009193, allocations: 25.02 kB / 334.4 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.009196, allocations: 4 kB / 334.4 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.009201, allocations: 0 / 334.4 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.009205, allocations: 7.938 kB / 334.5 MB, free: 6.168 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.00944, allocations: 181.2 kB / 334.6 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.009441, allocations: 0 / 334.6 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.009584, allocations: 51.91 kB / 334.7 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.009586, allocations: 8 kB / 334.7 MB, free: 5.902 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.009599, allocations: 7.984 kB / 334.7 MB, free: 5.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.009602, allocations: 4 kB / 334.7 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.009603, allocations: 0 / 334.7 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.009956, allocations: 0.5235 MB / 335.2 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.179e-05/0.009978, allocations: 23.78 kB / 335.2 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.009997, allocations: 8.25 kB / 335.3 MB, free: 5.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.01011, allocations: 4 kB / 335.3 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.01015, allocations: 23.91 kB / 335.3 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.01015, allocations: 8 kB / 335.3 MB, free: 5.285 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.294e-05/0.01023, allocations: 144.2 kB / 335.4 MB, free: 5.145 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01023, allocations: 0 / 335.4 MB, free: 5.145 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002796/0.01051, allocations: 63.89 kB / 335.5 MB, free: 5.082 MB / 298.7 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 7.407e-05/0.01058, allocations: 103.2 kB / 335.6 MB, free: 4.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.0108, allocations: 149.1 kB / 335.7 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.0108, allocations: 3.938 kB / 335.7 MB, free: 4.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.943e-05/0.01088, allocations: 63.91 kB / 335.8 MB, free: 4.758 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.01131, allocations: 67.38 kB / 335.9 MB, free: 4.695 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007461/0.01205, allocations: 0.6942 MB / 336.6 MB, free: 3.957 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.311e-05/0.01215, allocations: 134.2 kB / 336.7 MB, free: 3.809 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.01219, allocations: 24.5 kB / 336.7 MB, free: 3.785 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01219, allocations: 4 kB / 336.7 MB, free: 3.781 MB / 298.7 MB Notification: Performance of Templates: time 0.00319/0.01538, allocations: 2.958 MB / 339.7 MB, free: 0.8242 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.413726095110178]