Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002527/0.002526, allocations: 179.6 kB / 8.151 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001746/0.001746, allocations: 88.59 kB / 261.8 MB, free: 13.66 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.423e-05/1.479e-05, allocations: 4 kB / 314.3 MB, free: 9.086 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2421, allocations: 47.55 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1199/0.362, allocations: 76.26 MB / 438.1 MB, free: 9.852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.3624, allocations: 71.95 kB / 438.2 MB, free: 9.781 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01041/0.3728, allocations: 2.159 MB / 440.3 MB, free: 7.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.3729, allocations: 4 kB / 440.3 MB, free: 7.656 MB / 330.7 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.000587/0.3735, allocations: 392.2 kB / 440.7 MB, free: 7.227 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3735, allocations: 8.031 kB / 440.7 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002822/0.3738, allocations: 32.34 kB / 440.7 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.3741, allocations: 183 kB / 440.9 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.3741, allocations: 7.906 kB / 440.9 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.3742, allocations: 15.39 kB / 440.9 MB, free: 6.949 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002352/0.3744, allocations: 52.3 kB / 441 MB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.3747, allocations: 76.48 kB / 441.1 MB, free: 6.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.3747, allocations: 0.5625 kB / 441.1 MB, free: 6.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.3747, allocations: 0 / 441.1 MB, free: 6.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3747, allocations: 4 kB / 441.1 MB, free: 6.816 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.3759, allocations: 450.1 kB / 441.5 MB, free: 6.328 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.3762, allocations: 61.73 kB / 441.6 MB, free: 6.262 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.474e-05/0.3763, allocations: 20.86 kB / 441.6 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.3763, allocations: 6.625 kB / 441.6 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/0.3764, allocations: 36.5 kB / 441.6 MB, free: 6.191 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 3.116e-06/0.3764, allocations: 0 / 441.6 MB, free: 6.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002822/0.3767, allocations: 74.75 kB / 441.7 MB, free: 6.113 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.3767, allocations: 55.41 kB / 441.8 MB, free: 6.047 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.3768, allocations: 105 kB / 441.9 MB, free: 5.938 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.3769, allocations: 25.7 kB / 441.9 MB, free: 5.906 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.852e-05/0.377, allocations: 178.2 kB / 442.1 MB, free: 5.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.377, allocations: 27.56 kB / 442.1 MB, free: 5.703 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/0.377, allocations: 0 / 442.1 MB, free: 5.703 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3772, allocations: 322.8 kB / 442.4 MB, free: 5.379 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.463e-05/0.3773, allocations: 16 kB / 442.4 MB, free: 5.363 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.855e-05/0.3774, allocations: 43.44 kB / 442.5 MB, free: 5.309 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.3775, allocations: 27.92 kB / 442.5 MB, free: 5.281 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3775, allocations: 0 / 442.5 MB, free: 5.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002535/0.3778, allocations: 101.5 kB / 442.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.3778, allocations: 5.031 kB / 442.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3778, allocations: 0 / 442.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.3779, allocations: 7.938 kB / 442.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.3781, allocations: 31.91 kB / 442.6 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3781, allocations: 0 / 442.6 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.3782, allocations: 6.125 kB / 442.6 MB, free: 5.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.3783, allocations: 4 kB / 442.6 MB, free: 5.121 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.685e-05/0.3784, allocations: 41.64 kB / 442.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.3784, allocations: 11.89 kB / 442.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.132e-05/0.3785, allocations: 8.375 kB / 442.7 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3785, allocations: 4 kB / 442.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3785, allocations: 0.75 kB / 442.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3785, allocations: 0 / 442.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.3789, allocations: 170.2 kB / 442.9 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3789, allocations: 0 / 442.9 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.3792, allocations: 27.92 kB / 442.9 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.3792, allocations: 0 / 442.9 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.3792, allocations: 4 kB / 442.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3792, allocations: 0 / 442.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3792, allocations: 0.9375 kB / 442.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003496/0.3796, allocations: 203.2 kB / 443.1 MB, free: 4.605 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.965e-05/0.3797, allocations: 85.02 kB / 443.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.3797, allocations: 1.188 kB / 443.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.3798, allocations: 0 / 443.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.3799, allocations: 4 kB / 443.2 MB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.3799, allocations: 7.984 kB / 443.2 MB, free: 4.492 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.35e-05/0.38, allocations: 93.8 kB / 443.3 MB, free: 4.402 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003312/0.3803, allocations: 23.94 kB / 443.3 MB, free: 4.379 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000163/0.3805, allocations: 103.1 kB / 443.4 MB, free: 4.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002082/0.3807, allocations: 53.2 kB / 443.5 MB, free: 4.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.3807, allocations: 0 / 443.5 MB, free: 4.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.195e-05/0.3808, allocations: 27.94 kB / 443.5 MB, free: 4.191 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.3812, allocations: 15.42 kB / 443.5 MB, free: 4.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009597/0.3822, allocations: 338.7 kB / 443.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004964/0.3827, allocations: 0.7231 MB / 444.6 MB, free: 3.078 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.3827, allocations: 3.938 kB / 444.6 MB, free: 3.074 MB / 330.7 MB Notification: Performance of Templates: time 0.003991/0.3867, allocations: 1.267 MB / 445.8 MB, free: 1.82 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches