Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001583/0.001583, allocations: 118.5 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001683/0.001683, allocations: 215.8 kB / 19.41 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.435/1.435, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 55.91 kB / 359.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2719, allocations: 50.55 MB / 410.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003376/0.2753, allocations: 1.986 MB / 412.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.2766, allocations: 0.6935 MB / 412.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.537e-05/0.2767, allocations: 4 kB / 412.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.2768, allocations: 23.78 kB / 412.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.932e-05/0.2769, allocations: 39.64 kB / 412.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.2772, allocations: 51.8 kB / 413 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.2774, allocations: 147.3 kB / 413.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.2775, allocations: 25.11 kB / 413.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.741e-05/0.2776, allocations: 51.8 kB / 413.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.2777, allocations: 59.7 kB / 413.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.2777, allocations: 12 kB / 413.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.247e-05/0.2778, allocations: 31.97 kB / 413.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.007e-05/0.2779, allocations: 23.92 kB / 413.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.514e-05/0.2779, allocations: 59.67 kB / 413.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002719/0.2782, allocations: 139.3 kB / 413.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.2782, allocations: 4 kB / 413.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2782, allocations: 11.88 kB / 413.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.2782, allocations: 0 / 413.5 MB, free: 14.07 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.0008016/0.279, allocations: 442.8 kB / 414 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.2791, allocations: 8.031 kB / 414 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002081/0.2793, allocations: 24.88 kB / 414 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.2796, allocations: 212.1 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.228e-06/0.2796, allocations: 4.375 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.2796, allocations: 12.38 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.2799, allocations: 121.5 kB / 414.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.28, allocations: 3.984 kB / 414.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.28, allocations: 8 kB / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.28, allocations: 0 / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000274/0.2802, allocations: 87.88 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009347/0.2812, allocations: 0.5167 MB / 415 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.2815, allocations: 98.56 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.2816, allocations: 40.88 kB / 415.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.2816, allocations: 3.938 kB / 415.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.2817, allocations: 38.69 kB / 415.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 3.115e-06/0.2817, allocations: 3.984 kB / 415.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004688/0.2821, allocations: 153.5 kB / 415.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.2822, allocations: 51.41 kB / 415.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.2823, allocations: 133.3 kB / 415.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.2823, allocations: 25.7 kB / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.959e-05/0.2824, allocations: 120.2 kB / 415.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.2825, allocations: 35.7 kB / 415.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.2825, allocations: 25.7 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.2827, allocations: 326.8 kB / 416 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.2828, allocations: 31.98 kB / 416 MB, free: 11.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.283, allocations: 71.39 kB / 416.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.2832, allocations: 107.2 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2832, allocations: 0 / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003412/0.2836, allocations: 153.8 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2836, allocations: 7.938 kB / 416.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.2836, allocations: 4 kB / 416.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.2836, allocations: 0 / 416.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.2838, allocations: 35.91 kB / 416.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.2838, allocations: 4 kB / 416.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.5e-05/0.2839, allocations: 15.94 kB / 416.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.2839, allocations: 4 kB / 416.4 MB, free: 10.93 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 0.0001031/0.284, allocations: 133.8 kB / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.809e-05/0.284, allocations: 19.84 kB / 416.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.2841, allocations: 12.72 kB / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2841, allocations: 0 / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2841, allocations: 4 kB / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2841, allocations: 0 / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002684/0.2843, allocations: 217.5 kB / 416.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2843, allocations: 0 / 416.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.2845, allocations: 27.98 kB / 416.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2845, allocations: 4 kB / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.2845, allocations: 0 / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2845, allocations: 0 / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2845, allocations: 0 / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004836/0.285, allocations: 263.3 kB / 417.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.434e-05/0.2851, allocations: 88.95 kB / 417.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.2851, allocations: 8 kB / 417.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.2852, allocations: 12.03 kB / 417.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.36e-05/0.2853, allocations: 3.984 kB / 417.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.2853, allocations: 4 kB / 417.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.049e-05/0.2853, allocations: 99.27 kB / 417.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2853, allocations: 0 / 417.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.2856, allocations: 31.94 kB / 417.3 MB, free: 9.918 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.0001168/0.2857, allocations: 99.25 kB / 417.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003213/0.286, allocations: 91.88 kB / 417.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.286, allocations: 0 / 417.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.2862, allocations: 47.94 kB / 417.6 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.2865, allocations: 19.94 kB / 417.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008545/0.2873, allocations: 475.1 kB / 418.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.2877, allocations: 0.7041 MB / 418.8 MB, free: 8.438 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.834e-05/0.2877, allocations: 12.55 kB / 418.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.93e-05/0.2878, allocations: 15.44 kB / 418.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2878, allocations: 0 / 418.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of Templates: time 0.004234/0.292, allocations: 1.203 MB / 420 MB, free: 7.223 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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