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.001424/0.001424, allocations: 87.58 kB / 21.19 MB, free: 3.371 MB / 18.57 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.001442/0.001442, allocations: 165 kB / 24.56 MB, free: 4 kB / 18.57 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 0.9991/0.9991, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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 1.543e-06/1.543e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.986e-05/2.14e-05, allocations: 6.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002509/0.00253, allocations: 2.304 MB / 275.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.003758, allocations: 0.7438 MB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.003896, allocations: 7.938 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.004045, allocations: 31.66 kB / 276.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002768/0.004322, allocations: 95.14 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.004628, allocations: 107.7 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.004908, allocations: 314.4 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.005044, allocations: 44.5 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.005197, allocations: 159.7 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.005325, allocations: 91.7 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.005354, allocations: 20 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.759e-05/0.005382, allocations: 20 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.914e-05/0.005421, allocations: 55.75 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.829e-05/0.005489, allocations: 83.77 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.005695, allocations: 195.2 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.005697, allocations: 0 / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.005698, allocations: 0 / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.005703, allocations: 0 / 277.2 MB, free: 13.29 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.0005883/0.006291, allocations: 0.5429 MB / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.006327, allocations: 11.97 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.943e-05/0.006397, allocations: 48.73 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.006627, allocations: 212.1 kB / 278 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.006652, allocations: 12.88 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.006692, allocations: 24.38 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002868/0.006979, allocations: 220.1 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.006994, allocations: 8.141 kB / 278.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.007013, allocations: 8.375 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.007024, allocations: 7.938 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.007154, allocations: 87.86 kB / 278.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009151/0.008069, allocations: 1.107 MB / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.008304, allocations: 188.4 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.667e-05/0.008361, allocations: 54.81 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.00838, allocations: 11.92 kB / 279.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.008405, allocations: 45.38 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.824e-06/0.008406, allocations: 0 / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002902/0.008697, allocations: 149.4 kB / 279.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.008745, allocations: 136.5 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.00889, allocations: 249.5 kB / 280.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.008905, allocations: 33.7 kB / 280.3 MB, free: 9.859 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.008992, allocations: 207 kB / 280.5 MB, free: 9.648 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.009034, allocations: 71.42 kB / 280.6 MB, free: 9.578 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.009092, allocations: 55.31 kB / 280.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.009225, allocations: 0.4962 MB / 281.2 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.725e-05/0.009282, allocations: 35.95 kB / 281.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.009395, allocations: 182.9 kB / 281.4 MB, free: 8.727 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.009579, allocations: 230.9 kB / 281.6 MB, free: 8.434 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.009583, allocations: 4 kB / 281.6 MB, free: 8.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002388/0.009822, allocations: 217.4 kB / 281.8 MB, free: 8.211 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.009837, allocations: 8 kB / 281.8 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.009844, allocations: 8 kB / 281.8 MB, free: 8.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.009863, allocations: 7.938 kB / 281.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.01004, allocations: 67.91 kB / 281.9 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.01005, allocations: 19.86 kB / 281.9 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.768e-05/0.01012, allocations: 28.16 kB / 282 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.01014, allocations: 16 kB / 282 MB, free: 8.059 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.198e-05/0.01022, allocations: 168.5 kB / 282.1 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.01028, allocations: 23.91 kB / 282.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.01032, allocations: 25.02 kB / 282.2 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.01032, allocations: 4 kB / 282.2 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.01033, allocations: 0 / 282.2 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.01033, allocations: 7.938 kB / 282.2 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.01059, allocations: 196.4 kB / 282.4 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01059, allocations: 0 / 282.4 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.01074, allocations: 51.91 kB / 282.4 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.01075, allocations: 8 kB / 282.4 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.01076, allocations: 4 kB / 282.4 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.01076, allocations: 4 kB / 282.5 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01076, allocations: 0 / 282.5 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.01112, allocations: 0.6644 MB / 283.1 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.035e-05/0.01114, allocations: 11.91 kB / 283.1 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.01116, allocations: 11.98 kB / 283.1 MB, free: 6.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.01128, allocations: 4 kB / 283.1 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.01132, allocations: 16.67 kB / 283.2 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.01133, allocations: 11.98 kB / 283.2 MB, free: 6.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.061e-05/0.01141, allocations: 175.1 kB / 283.3 MB, free: 6.617 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01141, allocations: 0 / 283.3 MB, free: 6.617 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002924/0.0117, allocations: 59.84 kB / 283.4 MB, free: 6.559 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.508e-05/0.01179, allocations: 110.5 kB / 283.5 MB, free: 6.445 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001836/0.01197, allocations: 116.1 kB / 283.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01197, allocations: 128 / 283.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.355e-05/0.01204, allocations: 67.77 kB / 283.7 MB, free: 6.258 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.01247, allocations: 56.39 kB / 283.7 MB, free: 6.203 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009733/0.01344, allocations: 0.6613 MB / 284.4 MB, free: 5.496 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.342e-05/0.0135, allocations: 88.25 kB / 284.5 MB, free: 5.391 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.357e-05/0.01357, allocations: 22.28 kB / 284.5 MB, free: 5.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.835e-05/0.01362, allocations: 28.48 kB / 284.5 MB, free: 5.34 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01362, allocations: 0 / 284.5 MB, free: 5.34 MB / 266.7 MB Notification: Performance of Templates: time 0.004411/0.01803, allocations: 2.388 MB / 286.9 MB, free: 3.008 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.9013624200597405]