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.001694/0.001694, allocations: 112.2 kB / 21.19 MB, free: 0.7539 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.001717/0.001717, allocations: 213.7 kB / 24.49 MB, free: 4.137 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.421/1.421, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.001554/0.001554, allocations: 47.92 kB / 379 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2482, allocations: 53.36 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003775/0.2519, allocations: 2.297 MB / 434.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.2534, allocations: 0.7751 MB / 435.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.2535, allocations: 7.938 kB / 435.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.2537, allocations: 35.59 kB / 435.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002655/0.2539, allocations: 91.31 kB / 435.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000313/0.2542, allocations: 111.8 kB / 435.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.2546, allocations: 298.7 kB / 436 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.2547, allocations: 44.58 kB / 436 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.2549, allocations: 115.5 kB / 436.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.2551, allocations: 115.5 kB / 436.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/0.2551, allocations: 20 kB / 436.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.814e-05/0.2551, allocations: 23.94 kB / 436.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.405e-05/0.2552, allocations: 59.77 kB / 436.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.2553, allocations: 127.3 kB / 436.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.2556, allocations: 260.2 kB / 436.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2556, allocations: 0 / 436.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2556, allocations: 0 / 436.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2556, allocations: 0 / 436.7 MB, free: 2.562 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.0007945/0.2564, allocations: 465.5 kB / 437.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2565, allocations: 12.03 kB / 437.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.486e-05/0.2565, allocations: 36.75 kB / 437.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.2569, allocations: 186.9 kB / 437.4 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.2569, allocations: 16.81 kB / 437.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.257, allocations: 24.38 kB / 437.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004434/0.2574, allocations: 238.9 kB / 437.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.2574, allocations: 11.95 kB / 437.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.2575, allocations: 4 kB / 437.7 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.2575, allocations: 11.98 kB / 437.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003316/0.2578, allocations: 139.8 kB / 437.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.2593, allocations: 0.9931 MB / 438.8 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004531/0.2597, allocations: 206.4 kB / 439.1 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.2599, allocations: 59.45 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.2599, allocations: 4 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.2599, allocations: 38.5 kB / 439.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.242e-06/0.2599, allocations: 4 kB / 439.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005808/0.2605, allocations: 202.1 kB / 439.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.584e-05/0.2606, allocations: 136.5 kB / 439.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.2608, allocations: 191.2 kB / 439.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2608, allocations: 29.7 kB / 439.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.261, allocations: 168.2 kB / 439.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.522e-05/0.261, allocations: 75.41 kB / 439.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.553e-05/0.2611, allocations: 53.66 kB / 440 MB, free: 15.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2613, allocations: 330.8 kB / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.2614, allocations: 59.95 kB / 440.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.2617, allocations: 157.7 kB / 440.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003941/0.2621, allocations: 241.5 kB / 440.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2621, allocations: 0 / 440.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004658/0.2625, allocations: 249.5 kB / 441 MB, free: 13.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.2626, allocations: 18.5 kB / 441 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2626, allocations: 4 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.2626, allocations: 4 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.2629, allocations: 63.91 kB / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.2629, allocations: 15.92 kB / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.263, allocations: 31.72 kB / 441.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.536e-05/0.2631, allocations: 16 kB / 441.2 MB, free: 13.75 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.0001221/0.2632, allocations: 129.8 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.169e-05/0.2633, allocations: 27.84 kB / 441.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.203e-05/0.2633, allocations: 25.02 kB / 441.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2633, allocations: 4 kB / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2633, allocations: 256 / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.2633, allocations: 0 / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004719/0.2638, allocations: 252.5 kB / 441.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2638, allocations: 0 / 441.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.2641, allocations: 55.91 kB / 441.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.2641, allocations: 3.938 kB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2641, allocations: 4 kB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.2641, allocations: 0 / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2641, allocations: 8 kB / 441.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.2647, allocations: 0.5183 MB / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.68e-05/0.2648, allocations: 19.78 kB / 442.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.2648, allocations: 15.98 kB / 442.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.265, allocations: 8 kB / 442.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.2651, allocations: 7.984 kB / 442.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.2651, allocations: 7.984 kB / 442.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001351/0.2652, allocations: 144.5 kB / 442.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2652, allocations: 3.938 kB / 442.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004314/0.2656, allocations: 63.84 kB / 442.4 MB, free: 12.4 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.0001307/0.2658, allocations: 106.2 kB / 442.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000379/0.2662, allocations: 155.8 kB / 442.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2662, allocations: 0 / 442.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.2663, allocations: 59.91 kB / 442.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006614/0.267, allocations: 63.66 kB / 442.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.2684, allocations: 0.8545 MB / 443.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.2688, allocations: 0.744 MB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.965e-05/0.2689, allocations: 35.36 kB / 444.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2689, allocations: 4 kB / 444.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Templates: time 0.005143/0.274, allocations: 2.835 MB / 447.3 MB, free: 7.484 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.385745004052296]