Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") translateModel(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009955/0.0009955, allocations: 94.56 kB / 17.31 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 179.9 kB / 18.21 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.12/1.12, allocations: 223.3 MB / 242.2 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002018/0.0002018, allocations: 11.94 kB / 302.1 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06973/0.06995, allocations: 50.41 MB / 352.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.001475/0.07146, allocations: 1.477 MB / 354 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007476/0.07222, allocations: 0.6195 MB / 354.6 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.113e-05/0.07229, allocations: 4 kB / 354.6 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.256e-05/0.07238, allocations: 11.86 kB / 354.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.087e-05/0.07245, allocations: 35.75 kB / 354.6 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.07261, allocations: 35.89 kB / 354.7 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.07274, allocations: 123.3 kB / 354.8 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.179e-05/0.07284, allocations: 27.88 kB / 354.8 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.436e-05/0.07289, allocations: 39.8 kB / 354.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.032e-05/0.07297, allocations: 39.78 kB / 354.9 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.07299, allocations: 8 kB / 354.9 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.493e-05/0.07306, allocations: 23.98 kB / 354.9 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.939e-05/0.07309, allocations: 23.91 kB / 355 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.073e-05/0.07315, allocations: 65.52 kB / 355 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.07326, allocations: 91.98 kB / 355.1 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.07327, allocations: 0 / 355.1 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.07328, allocations: 4 kB / 355.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.015e-06/0.07329, allocations: 0 / 355.1 MB, free: 0.8203 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003905/0.07368, allocations: 391.4 kB / 355.5 MB, free: 400 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.07372, allocations: 8.031 kB / 355.5 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.07389, allocations: 24.83 kB / 355.5 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.07404, allocations: 188.2 kB / 355.7 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.07406, allocations: 8.562 kB / 355.7 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.607e-05/0.07409, allocations: 20.36 kB / 355.7 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.07425, allocations: 89.59 kB / 355.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.07427, allocations: 0 / 355.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.07429, allocations: 8 kB / 355.8 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.07429, allocations: 3.938 kB / 355.8 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.07442, allocations: 56.05 kB / 355.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.07502, allocations: 497 kB / 356.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.07523, allocations: 82.58 kB / 356.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.102e-05/0.07528, allocations: 24.89 kB / 356.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.0753, allocations: 4 kB / 356.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/0.07532, allocations: 42.5 kB / 356.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.07532, allocations: 0 / 356.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001832/0.07551, allocations: 89.83 kB / 356.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.07555, allocations: 59.34 kB / 356.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.587e-05/0.07562, allocations: 121.7 kB / 356.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.07564, allocations: 29.7 kB / 356.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.07569, allocations: 103.9 kB / 356.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.07572, allocations: 35.55 kB / 357 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.626e-05/0.07575, allocations: 9.719 kB / 357 MB, free: 14.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.389e-05/0.07584, allocations: 330.8 kB / 357.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.853e-05/0.07588, allocations: 23.94 kB / 357.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.513e-05/0.07594, allocations: 62.55 kB / 357.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.366e-05/0.07604, allocations: 79.36 kB / 357.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.07605, allocations: 0 / 357.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001476/0.0762, allocations: 109.5 kB / 357.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.07622, allocations: 4 kB / 357.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.07623, allocations: 0 / 357.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.07624, allocations: 4 kB / 357.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.863e-05/0.07634, allocations: 27.92 kB / 357.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.07636, allocations: 3.938 kB / 357.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.775e-05/0.07642, allocations: 12.03 kB / 357.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.07643, allocations: 8 kB / 357.6 MB, free: 14.05 MB / 302.1 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 (13): * Single equations (assignments): 13 * 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.85e-05/0.0765, allocations: 113.8 kB / 357.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.07654, allocations: 11.84 kB / 357.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.28e-05/0.07657, allocations: 16.36 kB / 357.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.07658, allocations: 4 kB / 357.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.07659, allocations: 3.938 kB / 357.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.0766, allocations: 0 / 357.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.07677, allocations: 201.5 kB / 358 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.07678, allocations: 0 / 358 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.0769, allocations: 24 kB / 358 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.07691, allocations: 0 / 358 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.07692, allocations: 4 kB / 358 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.07692, allocations: 0 / 358 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.07693, allocations: 4.25 kB / 358 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.07712, allocations: 203.4 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.353e-05/0.07716, allocations: 85.08 kB / 358.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.07719, allocations: 8.094 kB / 358.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.002e-05/0.07726, allocations: 7.938 kB / 358.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.07729, allocations: 7.938 kB / 358.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.07729, allocations: 0 / 358.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.17e-05/0.07734, allocations: 95.64 kB / 358.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07734, allocations: 0 / 358.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002271/0.07758, allocations: 35.84 kB / 358.4 MB, free: 13.15 MB / 302.1 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 (8): * Single equations (assignments): 8 * 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 6.766e-05/0.07765, allocations: 95.19 kB / 358.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001128/0.07777, allocations: 67.91 kB / 358.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.07778, allocations: 4 kB / 358.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.549e-05/0.07782, allocations: 27.94 kB / 358.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.0781, allocations: 16.31 kB / 358.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006223/0.07873, allocations: 0.5535 MB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.07893, allocations: 0.7004 MB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.817e-05/0.07897, allocations: 11.44 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.07897, allocations: 0 / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of Templates: time 0.002153/0.08113, allocations: 1.274 MB / 361.2 MB, free: 10.33 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches