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.001529/0.001529, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001939/0.001939, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2608, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003508/0.2643, allocations: 1.971 MB / 411.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2656, allocations: 0.709 MB / 412.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.2658, allocations: 0 / 412.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.2659, allocations: 19.8 kB / 412.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.2661, allocations: 39.64 kB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.2664, allocations: 51.84 kB / 412.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.2666, allocations: 147.3 kB / 412.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.2668, allocations: 33.05 kB / 412.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.2669, allocations: 55.78 kB / 412.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.267, allocations: 51.77 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.267, allocations: 12 kB / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.2672, allocations: 27.98 kB / 413 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.768e-05/0.2672, allocations: 23.92 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.837e-05/0.2673, allocations: 63.67 kB / 413.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.2675, allocations: 155.3 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2676, allocations: 0 / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2676, allocations: 3.938 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.2676, allocations: 0 / 413.3 MB, free: 14.2 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.0007091/0.2683, allocations: 432.2 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2683, allocations: 12.03 kB / 413.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00021/0.2686, allocations: 28.83 kB / 413.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.2689, allocations: 208 kB / 413.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.2689, allocations: 4.375 kB / 413.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.2689, allocations: 16.36 kB / 413.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.2693, allocations: 125.4 kB / 414.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2693, allocations: 0 / 414.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.2693, allocations: 4 kB / 414.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2693, allocations: 8 kB / 414.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.2696, allocations: 83.94 kB / 414.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009497/0.2706, allocations: 0.5165 MB / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003248/0.2709, allocations: 110.5 kB / 414.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.271, allocations: 36.84 kB / 414.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.2711, allocations: 7.938 kB / 414.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.2711, allocations: 38.55 kB / 414.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.2711, allocations: 0 / 414.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000464/0.2716, allocations: 149.6 kB / 415 MB, free: 12.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.2716, allocations: 51.41 kB / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.2718, allocations: 136.8 kB / 415.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.2718, allocations: 25.7 kB / 415.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.731e-05/0.2719, allocations: 120.1 kB / 415.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.2719, allocations: 39.47 kB / 415.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.774e-05/0.272, allocations: 33.72 kB / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2721, allocations: 318.8 kB / 415.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.2723, allocations: 35.97 kB / 415.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.2724, allocations: 63.41 kB / 415.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.2726, allocations: 115.3 kB / 415.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2727, allocations: 4 kB / 415.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003296/0.273, allocations: 137.4 kB / 416.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.273, allocations: 4.094 kB / 416.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.273, allocations: 7.984 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.2731, allocations: 4 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.2732, allocations: 35.92 kB / 416.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.2732, allocations: 0 / 416.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2733, allocations: 19.83 kB / 416.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.2734, allocations: 4 kB / 416.1 MB, free: 11.05 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.958e-05/0.2735, allocations: 121.8 kB / 416.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.2735, allocations: 11.84 kB / 416.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.955e-05/0.2736, allocations: 20.72 kB / 416.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2736, allocations: 0 / 416.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2736, allocations: 0 / 416.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.2736, allocations: 0 / 416.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000229/0.2738, allocations: 221.4 kB / 416.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2738, allocations: 3.938 kB / 416.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.274, allocations: 27.97 kB / 416.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.274, allocations: 0 / 416.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.274, allocations: 8 kB / 416.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.274, allocations: 0 / 416.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2741, allocations: 4 kB / 416.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004786/0.2745, allocations: 255.6 kB / 416.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.2746, allocations: 89.05 kB / 416.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.2746, allocations: 7.969 kB / 416.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.2747, allocations: 4.094 kB / 416.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.2748, allocations: 19.97 kB / 416.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.2748, allocations: 8 kB / 416.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.133e-05/0.2749, allocations: 97.92 kB / 417 MB, free: 10.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2749, allocations: 0 / 417 MB, free: 10.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.2752, allocations: 31.91 kB / 417.1 MB, free: 10.04 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.0001208/0.2753, allocations: 99.25 kB / 417.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003179/0.2756, allocations: 95.94 kB / 417.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2756, allocations: 0 / 417.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.2758, allocations: 47.97 kB / 417.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.2761, allocations: 27.7 kB / 417.3 MB, free: 9.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008245/0.2769, allocations: 480.9 kB / 417.8 MB, free: 9.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.2772, allocations: 0.7119 MB / 418.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.731e-05/0.2773, allocations: 11.44 kB / 418.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.2773, allocations: 0 / 418.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of Templates: time 0.00342/0.2807, allocations: 1.56 MB / 420.1 MB, free: 6.969 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/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_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.lossPower,heatCapacitor.T,inertia.phi,time