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.001361/0.001361, allocations: 91.67 kB / 21.2 MB, free: 3.367 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.001234/0.001234, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 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.9723/0.9723, allocations: 177 MB / 204.8 MB, free: 5.566 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 3.116e-06/3.116e-06, allocations: 4 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.105e-05/2.416e-05, allocations: 6.312 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002842/0.002867, allocations: 2.292 MB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.00391, allocations: 0.74 MB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.004011, allocations: 11.88 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.004138, allocations: 35.59 kB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.004373, allocations: 91.2 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.004627, allocations: 119.7 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002642/0.004891, allocations: 306.4 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.005049, allocations: 44.56 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.005199, allocations: 167.6 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.005335, allocations: 83.72 kB / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.005367, allocations: 20 kB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.995e-05/0.005397, allocations: 20 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.118e-05/0.005438, allocations: 55.75 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.389e-05/0.005512, allocations: 87.81 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.005747, allocations: 191.2 kB / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.00575, allocations: 0 / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.005751, allocations: 0 / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.005758, allocations: 0 / 277.1 MB, free: 13.16 MB / 266.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.0008386/0.006596, allocations: 0.5507 MB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/0.006655, allocations: 15.98 kB / 277.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.542e-05/0.00673, allocations: 40.75 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.006986, allocations: 208.2 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.007016, allocations: 16.88 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.007062, allocations: 24.38 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.007369, allocations: 220 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.007389, allocations: 8.141 kB / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.007408, allocations: 8.375 kB / 278.2 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.007423, allocations: 11.94 kB / 278.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.007556, allocations: 87.86 kB / 278.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009357/0.008492, allocations: 1.103 MB / 279.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.00876, allocations: 200.2 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.164e-05/0.008821, allocations: 54.81 kB / 279.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.008842, allocations: 7.984 kB / 279.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.008869, allocations: 41.39 kB / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.725e-06/0.008872, allocations: 0 / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003109/0.009183, allocations: 145.4 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/0.009244, allocations: 140.5 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.009397, allocations: 246.7 kB / 280.2 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.009412, allocations: 29.7 kB / 280.3 MB, free: 9.738 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.008e-05/0.009502, allocations: 215 kB / 280.5 MB, free: 9.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.936e-05/0.009541, allocations: 67.44 kB / 280.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.064e-05/0.009602, allocations: 63.3 kB / 280.6 MB, free: 9.383 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.009725, allocations: 0.5001 MB / 281.1 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.2e-05/0.009777, allocations: 27.98 kB / 281.1 MB, free: 8.844 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.009889, allocations: 182.9 kB / 281.3 MB, free: 8.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.01007, allocations: 230.8 kB / 281.5 MB, free: 8.305 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.01008, allocations: 0 / 281.5 MB, free: 8.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002449/0.01032, allocations: 217.2 kB / 281.8 MB, free: 8.086 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.01034, allocations: 4 kB / 281.8 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.01034, allocations: 7.938 kB / 281.8 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.01037, allocations: 8 kB / 281.8 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.01055, allocations: 71.89 kB / 281.8 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.01056, allocations: 7.938 kB / 281.9 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.391e-05/0.01063, allocations: 27.78 kB / 281.9 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.01065, allocations: 16.38 kB / 281.9 MB, free: 7.945 MB / 266.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 8.251e-05/0.01073, allocations: 172.5 kB / 282.1 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.01079, allocations: 23.91 kB / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.183e-05/0.01083, allocations: 25.03 kB / 282.1 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.01083, allocations: 0 / 282.1 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.01084, allocations: 7.938 kB / 282.1 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.902e-06/0.01084, allocations: 7.922 kB / 282.1 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002616/0.01111, allocations: 192.5 kB / 282.3 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01111, allocations: 256 / 282.3 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.01126, allocations: 55.91 kB / 282.4 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.01126, allocations: 8 kB / 282.4 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.01128, allocations: 8 kB / 282.4 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.01128, allocations: 0 / 282.4 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01128, allocations: 0 / 282.4 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.01168, allocations: 0.6639 MB / 283 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.36e-05/0.0117, allocations: 20.64 kB / 283.1 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.01173, allocations: 4 kB / 283.1 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.01184, allocations: 4 kB / 283.1 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.01188, allocations: 19.91 kB / 283.1 MB, free: 6.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.01189, allocations: 8 kB / 283.1 MB, free: 6.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.885e-05/0.01197, allocations: 179.2 kB / 283.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01197, allocations: 0 / 283.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002744/0.01224, allocations: 63.84 kB / 283.3 MB, free: 6.43 MB / 266.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 8.388e-05/0.01233, allocations: 103.2 kB / 283.4 MB, free: 6.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001945/0.01252, allocations: 120.1 kB / 283.6 MB, free: 6.199 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01252, allocations: 0 / 283.6 MB, free: 6.199 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.328e-05/0.01259, allocations: 67.64 kB / 283.6 MB, free: 6.129 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.01304, allocations: 63.52 kB / 283.7 MB, free: 6.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.01434, allocations: 0.658 MB / 284.3 MB, free: 5.367 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.819e-05/0.01441, allocations: 84.31 kB / 284.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.811e-05/0.01448, allocations: 26.27 kB / 284.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.893e-05/0.01453, allocations: 20.5 kB / 284.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01453, allocations: 4 kB / 284.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of Templates: time 0.004439/0.01897, allocations: 2.366 MB / 286.8 MB, free: 2.887 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.99246460897848]