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.001464/0.001464, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001576/0.001576, allocations: 213.2 kB / 24.48 MB, free: 3.84 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 1.456/1.456, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.001782/0.001782, allocations: 47.92 kB / 379 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2709, allocations: 53.36 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003676/0.2746, allocations: 2.153 MB / 434.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.276, allocations: 0.7245 MB / 435.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.2761, allocations: 7.938 kB / 435.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.2763, allocations: 35.66 kB / 435.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.2766, allocations: 87.33 kB / 435.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003282/0.2769, allocations: 111.7 kB / 435.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.2773, allocations: 302.6 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.2774, allocations: 43.52 kB / 435.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.2776, allocations: 115.6 kB / 435.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.2777, allocations: 107.5 kB / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.2778, allocations: 23.94 kB / 436 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.411e-05/0.2778, allocations: 20 kB / 436 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.275e-05/0.2779, allocations: 51.77 kB / 436.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.278, allocations: 99.53 kB / 436.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.2783, allocations: 262.6 kB / 436.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2783, allocations: 0 / 436.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2783, allocations: 0 / 436.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.2783, allocations: 0 / 436.4 MB, free: 2.617 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.0008216/0.2792, allocations: 477.5 kB / 436.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.2792, allocations: 8.031 kB / 436.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.214e-05/0.2793, allocations: 28.75 kB / 436.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.2796, allocations: 190.9 kB / 437.1 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.2796, allocations: 16.81 kB / 437.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.2797, allocations: 24.38 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.2801, allocations: 238.9 kB / 437.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.2802, allocations: 3.953 kB / 437.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.2802, allocations: 16 kB / 437.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-06/0.2802, allocations: 4 kB / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003372/0.2805, allocations: 143.8 kB / 437.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.2819, allocations: 0.9156 MB / 438.5 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004518/0.2824, allocations: 198.4 kB / 438.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.2825, allocations: 71.48 kB / 438.7 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.2825, allocations: 0 / 438.7 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.2826, allocations: 38.5 kB / 438.8 MB, free: 84 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.072e-06/0.2826, allocations: 0 / 438.8 MB, free: 84 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.000587/0.2831, allocations: 210 kB / 439 MB, free: 15.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.254e-05/0.2832, allocations: 132.5 kB / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.2834, allocations: 191.2 kB / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.2835, allocations: 33.7 kB / 439.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.2836, allocations: 172.2 kB / 439.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.2836, allocations: 71.42 kB / 439.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.053e-05/0.2837, allocations: 45.7 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.2839, allocations: 326.8 kB / 439.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.284, allocations: 59.95 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.2843, allocations: 161.6 kB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.2846, allocations: 237.5 kB / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2846, allocations: 0 / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004799/0.2851, allocations: 257.2 kB / 440.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.2851, allocations: 8 kB / 440.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.2852, allocations: 7.984 kB / 440.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.2852, allocations: 7.938 kB / 440.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.2854, allocations: 71.84 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.2855, allocations: 11.98 kB / 440.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.2856, allocations: 24.2 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.2856, allocations: 12 kB / 440.8 MB, free: 13.9 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.0001372/0.2858, allocations: 137.8 kB / 440.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.738e-05/0.2858, allocations: 23.86 kB / 440.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.337e-05/0.2859, allocations: 24.95 kB / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.2859, allocations: 4 kB / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2859, allocations: 256 / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2859, allocations: 0 / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003956/0.2863, allocations: 193.2 kB / 441.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2863, allocations: 4 kB / 441.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002727/0.2866, allocations: 55.91 kB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.2866, allocations: 4 kB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2866, allocations: 8 kB / 441.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2866, allocations: 3.938 kB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2866, allocations: 4 kB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006511/0.2873, allocations: 0.5278 MB / 441.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.761e-05/0.2873, allocations: 23.86 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.2873, allocations: 3.938 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.2875, allocations: 11.98 kB / 441.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.873e-05/0.2876, allocations: 15.98 kB / 441.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.2876, allocations: 11.98 kB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001278/0.2877, allocations: 136.5 kB / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2877, allocations: 0 / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004414/0.2882, allocations: 59.89 kB / 442 MB, free: 12.61 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.0001552/0.2883, allocations: 103.2 kB / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003824/0.2887, allocations: 160.3 kB / 442.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2887, allocations: 0 / 442.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.2889, allocations: 67.89 kB / 442.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006568/0.2895, allocations: 51.67 kB / 442.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.291, allocations: 0.8603 MB / 443.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.2912, allocations: 134.2 kB / 443.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.792e-05/0.2912, allocations: 31.44 kB / 443.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2912, allocations: 0 / 443.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of Templates: time 0.005216/0.2964, allocations: 2.944 MB / 446.4 MB, free: 8.207 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 -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.648087047971785]