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.001644/0.001644, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001993/0.001993, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 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 1.529/1.529, allocations: 230.5 MB / 258.2 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001932/0.001932, allocations: 63.91 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2859, allocations: 53.41 MB / 432.4 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.005416/0.2913, allocations: 2.295 MB / 434.7 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.2935, allocations: 0.7712 MB / 435.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.2937, allocations: 7.938 kB / 435.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.2939, allocations: 43.58 kB / 435.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003929/0.2943, allocations: 83.33 kB / 435.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005008/0.2948, allocations: 123.7 kB / 435.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005143/0.2953, allocations: 286.7 kB / 436 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.2955, allocations: 56.48 kB / 436.1 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.2957, allocations: 111.5 kB / 436.2 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002474/0.296, allocations: 119.5 kB / 436.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.653e-05/0.296, allocations: 20 kB / 436.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.718e-05/0.2961, allocations: 20 kB / 436.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.479e-05/0.2961, allocations: 55.77 kB / 436.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.2963, allocations: 123.3 kB / 436.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004936/0.2968, allocations: 264.1 kB / 436.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2968, allocations: 4 kB / 436.8 MB, free: 2.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2968, allocations: 0 / 436.8 MB, free: 2.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.2968, allocations: 0 / 436.8 MB, free: 2.379 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.001041/0.2979, allocations: 461.5 kB / 437.2 MB, free: 1.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.2979, allocations: 12.03 kB / 437.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.731e-05/0.298, allocations: 28.75 kB / 437.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005137/0.2985, allocations: 198.9 kB / 437.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.2986, allocations: 20.8 kB / 437.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.727e-05/0.2986, allocations: 28.36 kB / 437.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000597/0.2992, allocations: 234.9 kB / 437.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.107e-05/0.2992, allocations: 7.953 kB / 437.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.2993, allocations: 8 kB / 437.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.2993, allocations: 12 kB / 437.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005261/0.2998, allocations: 135.8 kB / 437.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.3018, allocations: 0.9931 MB / 438.9 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006371/0.3025, allocations: 202.4 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.3027, allocations: 67.45 kB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.3027, allocations: 4 kB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.3028, allocations: 38.5 kB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 2.023e-06/0.3028, allocations: 0 / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007952/0.3036, allocations: 201.4 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3037, allocations: 136.4 kB / 439.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.304, allocations: 195.2 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.304, allocations: 25.7 kB / 439.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.3042, allocations: 168.2 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.957e-05/0.3043, allocations: 63.44 kB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.3044, allocations: 53.66 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.3046, allocations: 338.8 kB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.3048, allocations: 59.89 kB / 440.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.3051, allocations: 157.7 kB / 440.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005235/0.3056, allocations: 233.5 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3057, allocations: 4 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006819/0.3063, allocations: 253.2 kB / 441.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.3064, allocations: 11.94 kB / 441.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3064, allocations: 7.938 kB / 441.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.3064, allocations: 4.375 kB / 441.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.3068, allocations: 71.91 kB / 441.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-05/0.3068, allocations: 11.94 kB / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.307, allocations: 31.77 kB / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.307, allocations: 12 kB / 441.2 MB, free: 13.57 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.0001832/0.3072, allocations: 133.8 kB / 441.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3074, allocations: 23.84 kB / 441.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.953e-05/0.3074, allocations: 21.02 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.3074, allocations: 4 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3074, allocations: 4 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3075, allocations: 0 / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005204/0.308, allocations: 248.5 kB / 441.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.308, allocations: 0 / 441.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.3083, allocations: 55.89 kB / 441.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.3083, allocations: 3.938 kB / 441.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.3083, allocations: 8.25 kB / 441.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.3083, allocations: 0 / 441.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.3083, allocations: 8 kB / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006369/0.3089, allocations: 0.5275 MB / 442.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.309, allocations: 19.78 kB / 442.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.309, allocations: 8 kB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.3092, allocations: 4 kB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.3093, allocations: 19.97 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3093, allocations: 4 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000133/0.3094, allocations: 140.5 kB / 442.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3094, allocations: 0 / 442.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000447/0.3099, allocations: 71.78 kB / 442.5 MB, free: 12.22 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.0001252/0.31, allocations: 94.75 kB / 442.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.3104, allocations: 159.8 kB / 442.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3104, allocations: 4 kB / 442.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.3106, allocations: 64.19 kB / 442.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006698/0.3112, allocations: 60.34 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.3127, allocations: 0.8484 MB / 443.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.3131, allocations: 0.748 MB / 444.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.658e-05/0.3132, allocations: 27.38 kB / 444.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3132, allocations: 0 / 444.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Templates: time 0.005406/0.3186, allocations: 2.858 MB / 447.3 MB, free: 7.293 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 8.077272494090721]