Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 200.6 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2558, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002949/0.2588, allocations: 1.985 MB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.2598, allocations: 0.6897 MB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.753e-05/0.2599, allocations: 0 / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.26, allocations: 19.8 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.207e-05/0.2601, allocations: 51.61 kB / 412 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.2603, allocations: 47.81 kB / 412 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.2605, allocations: 147.3 kB / 412.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.2607, allocations: 29.11 kB / 412.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.151e-05/0.2607, allocations: 63.7 kB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.333e-05/0.2608, allocations: 51.78 kB / 412.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.2609, allocations: 12 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.656e-05/0.261, allocations: 31.98 kB / 412.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.544e-05/0.261, allocations: 19.92 kB / 412.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.088e-05/0.2611, allocations: 59.67 kB / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002132/0.2613, allocations: 151.4 kB / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2613, allocations: 0 / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2613, allocations: 3.938 kB / 412.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.2613, allocations: 0 / 412.6 MB, free: 14.22 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006388/0.262, allocations: 452.1 kB / 413 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.262, allocations: 8.031 kB / 413 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.2622, allocations: 24.83 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.2624, allocations: 200 kB / 413.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.2624, allocations: 8.375 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.2625, allocations: 12.38 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.2627, allocations: 125.4 kB / 413.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.2628, allocations: 4 kB / 413.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.2628, allocations: 4 kB / 413.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.2628, allocations: 4 kB / 413.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.2631, allocations: 91.92 kB / 413.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008574/0.2639, allocations: 0.5243 MB / 414 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.2642, allocations: 102.5 kB / 414.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.2644, allocations: 40.83 kB / 414.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.2644, allocations: 7.938 kB / 414.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.2644, allocations: 34.56 kB / 414.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.2644, allocations: 0 / 414.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000445/0.2649, allocations: 145.7 kB / 414.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.2649, allocations: 55.41 kB / 414.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.265, allocations: 132.6 kB / 414.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.2651, allocations: 25.7 kB / 414.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/0.2651, allocations: 120.1 kB / 414.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.2652, allocations: 35.55 kB / 414.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.2652, allocations: 29.72 kB / 414.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2653, allocations: 318.8 kB / 415 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.2655, allocations: 35.97 kB / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.2656, allocations: 70.84 kB / 415.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.2659, allocations: 115.3 kB / 415.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2659, allocations: 0 / 415.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003129/0.2662, allocations: 149.5 kB / 415.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.2662, allocations: 4 kB / 415.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2662, allocations: 384 / 415.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2662, allocations: 4 kB / 415.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.2664, allocations: 27.98 kB / 415.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.2664, allocations: 7.922 kB / 415.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.208e-05/0.2665, allocations: 27.77 kB / 415.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.2665, allocations: 4 kB / 415.5 MB, free: 11.07 MB / 334.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 (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 9.259e-05/0.2666, allocations: 125.8 kB / 415.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.2667, allocations: 11.84 kB / 415.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.529e-05/0.2667, allocations: 16.72 kB / 415.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2667, allocations: 0 / 415.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2667, allocations: 3.984 kB / 415.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2667, allocations: 0 / 415.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.267, allocations: 221.4 kB / 415.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.267, allocations: 0 / 415.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.2672, allocations: 27.97 kB / 415.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2672, allocations: 7.938 kB / 415.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2672, allocations: 4 kB / 415.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2672, allocations: 0 / 415.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2672, allocations: 0 / 415.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004283/0.2676, allocations: 255.3 kB / 416.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.2677, allocations: 92.98 kB / 416.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.2677, allocations: 8 kB / 416.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.2678, allocations: 8 kB / 416.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.2679, allocations: 7.984 kB / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.2679, allocations: 4 kB / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.058e-05/0.268, allocations: 102.4 kB / 416.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.268, allocations: 0 / 416.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.2682, allocations: 31.91 kB / 416.4 MB, free: 10.06 MB / 334.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 (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 0.0001157/0.2684, allocations: 99.23 kB / 416.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.2686, allocations: 91.89 kB / 416.6 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2686, allocations: 0 / 416.6 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.2688, allocations: 47.91 kB / 416.6 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.2691, allocations: 28.14 kB / 416.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007566/0.2698, allocations: 451.8 kB / 417.1 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.2701, allocations: 0.708 MB / 417.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.16e-05/0.2702, allocations: 8.562 kB / 417.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.393e-05/0.2702, allocations: 11.44 kB / 417.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2702, allocations: 0 / 417.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of Templates: time 0.003458/0.2737, allocations: 1.192 MB / 419 MB, free: 7.391 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inertia.phi,heatCapacitor.T,eddyCurrentTorque.lossPower Variables in the result:eddyCurrentTorque.T,eddyCurrentTorque.TRef,eddyCurrentTorque.alpha20,eddyCurrentTorque.constantExcitation,eddyCurrentTorque.lossPower,eddyCurrentTorque.phi,eddyCurrentTorque.tau_nominal,eddyCurrentTorque.useExcitationInput,eddyCurrentTorque.w_nominal,heatCapacitor.C,heatCapacitor.T,inertia.J,inertia.phi,ramp.duration,ramp.height,ramp.offset,ramp.startTime,time