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.001061/0.001061, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001072/0.001072, allocations: 170 kB / 25.61 MB, free: 8.855 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.933/0.933, allocations: 177.1 MB / 206.1 MB, free: 4.508 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.463e-06/1.463e-06, allocations: 3.938 kB / 274.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.743e-05/1.89e-05, allocations: 2.312 kB / 274.2 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002375/0.002394, allocations: 2.022 MB / 276.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.003486, allocations: 0.6722 MB / 276.9 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.082e-05/0.003577, allocations: 7.938 kB / 276.9 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.00369, allocations: 15.8 kB / 276.9 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.293e-05/0.003762, allocations: 51.56 kB / 276.9 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.00397, allocations: 57.77 kB / 277 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001404/0.004111, allocations: 143.2 kB / 277.1 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.619e-05/0.004207, allocations: 25.3 kB / 277.2 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.911e-05/0.004296, allocations: 79.8 kB / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.527e-05/0.004371, allocations: 44.55 kB / 277.3 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.00439, allocations: 8 kB / 277.3 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.394e-05/0.004454, allocations: 31.98 kB / 277.3 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.221e-05/0.004476, allocations: 27.84 kB / 277.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.831e-05/0.004515, allocations: 35.92 kB / 277.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.004674, allocations: 119.6 kB / 277.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.004675, allocations: 0 / 277.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.004676, allocations: 0 / 277.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.004679, allocations: 0 / 277.5 MB, free: 1.125 MB / 250.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.0004198/0.005099, allocations: 467.9 kB / 278 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.00513, allocations: 11.97 kB / 278 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.005275, allocations: 40.88 kB / 278 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.005419, allocations: 152.4 kB / 278.2 MB, free: 416 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.005432, allocations: 12.38 kB / 278.2 MB, free: 404 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.005451, allocations: 8.375 kB / 278.2 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.005586, allocations: 94.91 kB / 278.3 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.005596, allocations: 192 / 278.3 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.00561, allocations: 11.94 kB / 278.3 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.005615, allocations: 0 / 278.3 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.406e-05/0.005679, allocations: 38.75 kB / 278.3 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/0.006162, allocations: 443 kB / 278.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001476/0.006309, allocations: 79.03 kB / 278.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.506e-05/0.006334, allocations: 19.69 kB / 278.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.006342, allocations: 0 / 278.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.006361, allocations: 37.38 kB / 278.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 9.62e-07/0.006362, allocations: 0 / 278.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001457/0.006508, allocations: 89.72 kB / 279 MB, free: 15.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.006534, allocations: 59.34 kB / 279 MB, free: 15.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.507e-05/0.006609, allocations: 192 kB / 279.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.00662, allocations: 25.7 kB / 279.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.833e-05/0.006678, allocations: 166.9 kB / 279.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.006698, allocations: 31.73 kB / 279.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.006734, allocations: 35.31 kB / 279.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.006838, allocations: 0.4962 MB / 280 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.923e-05/0.006857, allocations: 8 kB / 280 MB, free: 14.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.671e-05/0.006894, allocations: 46.73 kB / 280 MB, free: 14.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.295e-05/0.006957, allocations: 78.66 kB / 280.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.006959, allocations: 0 / 280.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 9.922e-05/0.007058, allocations: 101.4 kB / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.007068, allocations: 4 kB / 280.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.007072, allocations: 0 / 280.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.007081, allocations: 4 kB / 280.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.197e-05/0.007163, allocations: 35.92 kB / 280.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.007167, allocations: 8.031 kB / 280.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.803e-05/0.007205, allocations: 11.89 kB / 280.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.007212, allocations: 7.984 kB / 280.3 MB, free: 14.12 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 6.329e-05/0.007275, allocations: 160.6 kB / 280.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.007297, allocations: 15.89 kB / 280.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.546e-05/0.007322, allocations: 16.77 kB / 280.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.007324, allocations: 0 / 280.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.007327, allocations: 3.938 kB / 280.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.00733, allocations: 0 / 280.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.007443, allocations: 129.2 kB / 280.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.007444, allocations: 4 kB / 280.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.76e-05/0.007521, allocations: 23.98 kB / 280.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.71e-07/0.007522, allocations: 0 / 280.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.00753, allocations: 3.938 kB / 280.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.007532, allocations: 7.984 kB / 280.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.007533, allocations: 0 / 280.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.007694, allocations: 252 kB / 280.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.074e-05/0.007705, allocations: 11.89 kB / 280.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.007717, allocations: 0 / 280.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.525e-05/0.007762, allocations: 4 kB / 280.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.727e-05/0.007789, allocations: 15.98 kB / 280.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.007793, allocations: 0 / 280.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.066e-05/0.007833, allocations: 139.2 kB / 281 MB, free: 13.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.007833, allocations: 0 / 281 MB, free: 13.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001641/0.007997, allocations: 31.94 kB / 281.1 MB, free: 13.26 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 7.422e-05/0.008072, allocations: 99.17 kB / 281.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.777e-05/0.008159, allocations: 51.61 kB / 281.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.008161, allocations: 0 / 281.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.13e-05/0.008192, allocations: 35.78 kB / 281.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.008401, allocations: 19.98 kB / 281.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006033/0.009004, allocations: 386 kB / 281.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.667e-05/0.009041, allocations: 71.2 kB / 281.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.809e-05/0.009079, allocations: 12.48 kB / 281.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.932e-05/0.009148, allocations: 90.19 kB / 281.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.009149, allocations: 0 / 281.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of Templates: time 0.003158/0.01231, allocations: 1.352 MB / 283.2 MB, free: 11.14 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 -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.758147418964654]