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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001/0.0009999, allocations: 112.8 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009199/0.00092, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2076, allocations: 50.45 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.00293/0.2106, allocations: 2.038 MB / 409.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009686/0.2116, allocations: 0.6873 MB / 409.8 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.428e-05/0.2117, allocations: 4 kB / 409.8 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.2118, allocations: 15.86 kB / 409.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.116e-05/0.2119, allocations: 34.81 kB / 409.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.2121, allocations: 43.83 kB / 409.9 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.2122, allocations: 143.3 kB / 410 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.2123, allocations: 29.09 kB / 410 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.219e-05/0.2124, allocations: 47.8 kB / 410.1 MB, free: 24.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.2125, allocations: 67.69 kB / 410.1 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.2125, allocations: 4 kB / 410.1 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.552e-05/0.2126, allocations: 24 kB / 410.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.11e-05/0.2126, allocations: 15.92 kB / 410.2 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.136e-05/0.2127, allocations: 63.66 kB / 410.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.2129, allocations: 141.1 kB / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2129, allocations: 0 / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2129, allocations: 0 / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.2129, allocations: 0 / 410.4 MB, free: 24.45 MB / 298.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.0005721/0.2135, allocations: 442.9 kB / 410.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.2135, allocations: 12.03 kB / 410.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.2137, allocations: 28.73 kB / 410.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.2139, allocations: 199.3 kB / 411.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.2139, allocations: 8.375 kB / 411.1 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.2139, allocations: 12.38 kB / 411.1 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.2142, allocations: 123.1 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.2142, allocations: 4 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.2142, allocations: 3.984 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2142, allocations: 4 kB / 411.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.2145, allocations: 91.88 kB / 411.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007257/0.2152, allocations: 0.5204 MB / 411.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002809/0.2155, allocations: 98.61 kB / 411.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.2157, allocations: 40.84 kB / 412 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.2157, allocations: 3.938 kB / 412 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.2157, allocations: 50.61 kB / 412 MB, free: 22.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.2157, allocations: 0 / 412 MB, free: 22.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004158/0.2161, allocations: 141.5 kB / 412.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.11e-05/0.2162, allocations: 55.41 kB / 412.2 MB, free: 22.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.166e-05/0.2162, allocations: 140.6 kB / 412.3 MB, free: 22.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.447e-06/0.2163, allocations: 25.7 kB / 412.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.021e-05/0.2163, allocations: 116.1 kB / 412.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.2163, allocations: 35.53 kB / 412.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-05/0.2164, allocations: 29.62 kB / 412.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.2165, allocations: 322.8 kB / 412.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.2166, allocations: 43.97 kB / 412.9 MB, free: 21.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.2167, allocations: 69.66 kB / 413 MB, free: 21.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.217, allocations: 107.3 kB / 413.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.217, allocations: 7.938 kB / 413.1 MB, free: 21.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002711/0.2172, allocations: 141.4 kB / 413.2 MB, free: 21.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2173, allocations: 4 kB / 413.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2173, allocations: 0 / 413.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.2173, allocations: 11.92 kB / 413.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.2174, allocations: 27.98 kB / 413.3 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2175, allocations: 0 / 413.3 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.821e-05/0.2176, allocations: 24.02 kB / 413.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.2176, allocations: 4 kB / 413.3 MB, free: 21.3 MB / 298.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.369e-05/0.2177, allocations: 125.7 kB / 413.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.2177, allocations: 11.84 kB / 413.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.2177, allocations: 16.72 kB / 413.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2178, allocations: 0 / 413.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2178, allocations: 0 / 413.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2178, allocations: 3.984 kB / 413.4 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.218, allocations: 217.5 kB / 413.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.218, allocations: 0 / 413.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.2181, allocations: 27.97 kB / 413.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2182, allocations: 3.938 kB / 413.7 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.2182, allocations: 8 kB / 413.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2182, allocations: 384 / 413.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2182, allocations: 0 / 413.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.2204, allocations: 1.554 MB / 415.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.865e-05/0.2204, allocations: 88.95 kB / 415.3 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.2205, allocations: 4 kB / 415.3 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.2206, allocations: 12.03 kB / 415.3 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/0.2206, allocations: 4 kB / 415.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.2206, allocations: 4 kB / 415.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.978e-05/0.2207, allocations: 106.1 kB / 415.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2207, allocations: 0 / 415.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003309/0.221, allocations: 43.94 kB / 415.5 MB, free: 18.86 MB / 298.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 8.944e-05/0.2211, allocations: 99.25 kB / 415.6 MB, free: 18.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002615/0.2214, allocations: 95.81 kB / 415.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2214, allocations: 0 / 415.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.2215, allocations: 39.98 kB / 415.7 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.2219, allocations: 15.98 kB / 415.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00072/0.2226, allocations: 0.6253 MB / 416.4 MB, free: 17.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.2228, allocations: 0.716 MB / 417.1 MB, free: 17.2 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.46e-05/0.2229, allocations: 12.55 kB / 417.1 MB, free: 17.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.482e-05/0.2229, allocations: 15.44 kB / 417.1 MB, free: 17.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2229, allocations: 0 / 417.1 MB, free: 17.18 MB / 298.7 MB Notification: Performance of Templates: time 0.003295/0.2262, allocations: 1.528 MB / 418.6 MB, free: 15.67 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","../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