Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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.001358/0.001358, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001699/0.001699, allocations: 170.5 kB / 24.91 MB, free: 9.191 MB / 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.9456/0.9456, allocations: 177.1 MB / 205.3 MB, free: 5.461 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.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|eddyCurrentTorque.lossPower|inertia.phi|heatCapacitor.T",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") translateModel(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|eddyCurrentTorque.lossPower|inertia.phi|heatCapacitor.T",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.032e-05/2.17e-05, allocations: 2.312 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002396/0.002417, allocations: 2.081 MB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007353/0.003153, allocations: 0.6972 MB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.706e-05/0.00322, allocations: 3.938 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.999e-05/0.00332, allocations: 19.8 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.399e-05/0.003384, allocations: 35.64 kB / 276.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001653/0.003549, allocations: 51.8 kB / 276.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.003685, allocations: 155.2 kB / 276.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.65e-05/0.003771, allocations: 25.95 kB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.86e-05/0.00386, allocations: 75.86 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.165e-05/0.003931, allocations: 51.81 kB / 276.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.003947, allocations: 11.94 kB / 276.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.008e-05/0.004017, allocations: 27.98 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.004039, allocations: 27.91 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.929e-05/0.004068, allocations: 35.92 kB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.004221, allocations: 115.6 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.004223, allocations: 0 / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.004223, allocations: 0 / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.004227, allocations: 0 / 276.9 MB, free: 13.83 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0003408/0.004568, allocations: 340.3 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.641e-05/0.004594, allocations: 8.031 kB / 277.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.004732, allocations: 36.89 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.004856, allocations: 137.5 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.607e-06/0.004864, allocations: 8.375 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.004884, allocations: 16.36 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.004998, allocations: 93.31 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.005008, allocations: 8.141 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.005017, allocations: 7.938 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.005021, allocations: 4 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.637e-05/0.005078, allocations: 35.91 kB / 277.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003966/0.005474, allocations: 323 kB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001294/0.005604, allocations: 54.56 kB / 277.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.458e-05/0.005628, allocations: 24.84 kB / 277.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-06/0.005637, allocations: 4 kB / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.592e-05/0.005653, allocations: 30.56 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.012e-06/0.005654, allocations: 192 / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.000122/0.005776, allocations: 69.61 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.219e-05/0.005798, allocations: 55.41 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.215e-05/0.00586, allocations: 145.4 kB / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.005869, allocations: 29.64 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.921e-05/0.005909, allocations: 112.2 kB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.005928, allocations: 35.69 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.00596, allocations: 25.7 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.562e-05/0.006025, allocations: 330.8 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.572e-05/0.006041, allocations: 8 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.255e-05/0.006073, allocations: 39.41 kB / 278.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.656e-05/0.00613, allocations: 59.28 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.006131, allocations: 4 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 8.194e-05/0.006213, allocations: 81.59 kB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.006223, allocations: 4.094 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.006226, allocations: 4 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.006237, allocations: 4 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.006342, allocations: 35.86 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/0.006344, allocations: 4 kB / 279 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.71e-05/0.006382, allocations: 15.92 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.006387, allocations: 4 kB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (14): * Single equations (assignments): 14 * 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 4.842e-05/0.006436, allocations: 113.8 kB / 279.1 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.034e-05/0.006456, allocations: 11.94 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.00648, allocations: 16.77 kB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.006484, allocations: 11.98 kB / 279.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.006487, allocations: 7.875 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.00649, allocations: 0 / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.006593, allocations: 97.77 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.006594, allocations: 0 / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.726e-05/0.006681, allocations: 35.97 kB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.006682, allocations: 0 / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.006689, allocations: 0 / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.12e-07/0.006689, allocations: 0 / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.00669, allocations: 4 kB / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.006817, allocations: 183.4 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.686e-06/0.006826, allocations: 7.953 kB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.006839, allocations: 4 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.548e-05/0.006885, allocations: 7.984 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.499e-05/0.006909, allocations: 7.938 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.006914, allocations: 3.984 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.033e-05/0.006934, allocations: 31.64 kB / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006934, allocations: 0 / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001344/0.007069, allocations: 31.95 kB / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,heatCapacitor.T) * 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 (9): * Single equations (assignments): 9 * 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 5.88e-05/0.007128, allocations: 84.36 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.229e-05/0.0072, allocations: 41.91 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.007204, allocations: 4 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.586e-05/0.007229, allocations: 24.84 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.007379, allocations: 16.66 kB / 279.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005701/0.00795, allocations: 368.2 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.525e-05/0.007985, allocations: 75.33 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.648e-05/0.008021, allocations: 8.5 kB / 280.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.498e-05/0.008086, allocations: 67.36 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of SimCode: time 6.72e-07/0.008087, allocations: 0 / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of Templates: time 0.002738/0.01083, allocations: 1.362 MB / 281.6 MB, free: 8.828 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.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.492171028163284]