Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001397/0.001397, allocations: 105.1 kB / 21.22 MB, free: 0.6797 MB / 14.72 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.001409/0.001409, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.45/1.45, allocations: 230.6 MB / 258.3 MB, free: 8.047 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 67.89 kB / 379 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2551, allocations: 53.37 MB / 432.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003591/0.2587, allocations: 2.293 MB / 434.7 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.2601, allocations: 0.7672 MB / 435.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.2602, allocations: 4 kB / 435.5 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.2604, allocations: 43.59 kB / 435.5 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.2607, allocations: 91.31 kB / 435.6 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.261, allocations: 115.7 kB / 435.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003666/0.2614, allocations: 286.7 kB / 436 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.2615, allocations: 48.56 kB / 436 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.2617, allocations: 115.5 kB / 436.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.2618, allocations: 123.5 kB / 436.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.2619, allocations: 24 kB / 436.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.724e-05/0.2619, allocations: 20 kB / 436.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.046e-05/0.262, allocations: 51.77 kB / 436.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.2621, allocations: 127.3 kB / 436.5 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000334/0.2624, allocations: 264.6 kB / 436.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2624, allocations: 0 / 436.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2624, allocations: 0 / 436.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2625, allocations: 0 / 436.7 MB, free: 2.625 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.0008238/0.2633, allocations: 473.5 kB / 437.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2633, allocations: 8.031 kB / 437.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.543e-05/0.2634, allocations: 28.75 kB / 437.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.2637, allocations: 190.9 kB / 437.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.2638, allocations: 16.81 kB / 437.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.986e-05/0.2638, allocations: 24.38 kB / 437.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004577/0.2643, allocations: 250.9 kB / 437.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.2643, allocations: 3.953 kB / 437.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.2643, allocations: 12 kB / 437.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.2643, allocations: 4 kB / 437.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003508/0.2647, allocations: 142.5 kB / 437.9 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.2661, allocations: 0.9931 MB / 438.9 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.2666, allocations: 206.3 kB / 439.1 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.2668, allocations: 63.5 kB / 439.1 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.2668, allocations: 0 / 439.1 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/0.2668, allocations: 50.56 kB / 439.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.112e-06/0.2668, allocations: 0 / 439.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005904/0.2674, allocations: 193.7 kB / 439.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.2675, allocations: 136.5 kB / 439.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002127/0.2677, allocations: 199.1 kB / 439.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.2678, allocations: 25.7 kB / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.2679, allocations: 168.2 kB / 439.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.559e-05/0.268, allocations: 71.33 kB / 440 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.249e-05/0.2681, allocations: 49.66 kB / 440 MB, free: 15.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.2682, allocations: 334.8 kB / 440.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.2684, allocations: 59.89 kB / 440.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.2686, allocations: 160.5 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.269, allocations: 233.5 kB / 440.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.269, allocations: 4 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004866/0.2695, allocations: 257.5 kB / 441 MB, free: 13.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.2695, allocations: 7.938 kB / 441 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.2696, allocations: 7.984 kB / 441 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.2696, allocations: 8 kB / 441.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.2699, allocations: 67.91 kB / 441.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.2699, allocations: 7.938 kB / 441.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.27, allocations: 27.78 kB / 441.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.27, allocations: 19.97 kB / 441.2 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.0001415/0.2702, allocations: 145.8 kB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-05/0.2703, allocations: 19.84 kB / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.2703, allocations: 21.02 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.2703, allocations: 4 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2703, allocations: 0 / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.2703, allocations: 4 kB / 441.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.2708, allocations: 244.5 kB / 441.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2708, allocations: 0 / 441.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003313/0.2711, allocations: 51.91 kB / 441.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.2711, allocations: 7.938 kB / 441.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.2712, allocations: 11.98 kB / 441.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.2712, allocations: 4 kB / 441.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2712, allocations: 0 / 441.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006645/0.2718, allocations: 0.5128 MB / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.505e-05/0.2719, allocations: 31.77 kB / 442.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.2719, allocations: 8 kB / 442.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.2721, allocations: 0 / 442.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.2722, allocations: 19.97 kB / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.2722, allocations: 4 kB / 442.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.2723, allocations: 136.5 kB / 442.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2723, allocations: 0 / 442.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004323/0.2727, allocations: 71.78 kB / 442.5 MB, free: 12.46 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.0001172/0.2729, allocations: 104 kB / 442.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004003/0.2733, allocations: 156 kB / 442.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2733, allocations: 0 / 442.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.2734, allocations: 61.22 kB / 442.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006672/0.2741, allocations: 60.17 kB / 442.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.2755, allocations: 0.8271 MB / 443.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.2758, allocations: 0.744 MB / 444.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.729e-05/0.2759, allocations: 22.3 kB / 444.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.189e-05/0.276, allocations: 23.42 kB / 444.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.276, allocations: 0 / 444.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of Templates: time 0.005774/0.2817, allocations: 2.433 MB / 446.9 MB, free: 7.988 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.746900875121355]