Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001026/0.001026, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.357/1.357, allocations: 205.2 MB / 214.1 MB, free: 5.102 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009635/0.0009636, allocations: 86.83 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.555e-06/7.585e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 47.57 MB / 362.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3634/0.4723, allocations: 76.26 MB / 438.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001897/0.4726, allocations: 64.77 kB / 438.9 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.006181/0.4788, allocations: 2.16 MB / 441 MB, free: 10.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.4788, allocations: 7.562 kB / 441 MB, free: 10.57 MB / 314.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.0004239/0.4793, allocations: 379 kB / 441.4 MB, free: 10.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4793, allocations: 16.27 kB / 441.4 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000251/0.4796, allocations: 31.92 kB / 441.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.4798, allocations: 183.6 kB / 441.6 MB, free: 9.984 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.4798, allocations: 7.75 kB / 441.6 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.4798, allocations: 4.359 kB / 441.6 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001473/0.48, allocations: 52.48 kB / 441.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.4801, allocations: 86.77 kB / 441.8 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.4801, allocations: 0.7656 kB / 441.8 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.4802, allocations: 2.75 kB / 441.8 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.4802, allocations: 3.844 kB / 441.8 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006829/0.4809, allocations: 452 kB / 442.2 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.4811, allocations: 57.16 kB / 442.3 MB, free: 9.605 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.511e-05/0.4811, allocations: 25.64 kB / 442.3 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.4812, allocations: 3.078 kB / 442.3 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.376e-05/0.4812, allocations: 30.56 kB / 442.3 MB, free: 9.559 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.4812, allocations: 0 / 442.3 MB, free: 9.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001825/0.4814, allocations: 85.2 kB / 442.4 MB, free: 9.512 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.4814, allocations: 51.41 kB / 442.5 MB, free: 9.449 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.307e-05/0.4815, allocations: 105.3 kB / 442.6 MB, free: 9.359 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.4815, allocations: 25.7 kB / 442.6 MB, free: 9.328 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.4816, allocations: 110.7 kB / 442.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.4816, allocations: 29.36 kB / 442.7 MB, free: 9.211 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.4816, allocations: 0 / 442.7 MB, free: 9.211 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.542e-05/0.4817, allocations: 316.8 kB / 443 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.668e-05/0.4817, allocations: 24.81 kB / 443.1 MB, free: 8.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.213e-05/0.4818, allocations: 46.03 kB / 443.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.017e-05/0.4818, allocations: 24.27 kB / 443.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4818, allocations: 0 / 443.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000138/0.482, allocations: 103.2 kB / 443.2 MB, free: 8.816 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.482, allocations: 7.938 kB / 443.2 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.482, allocations: 4.734 kB / 443.2 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.482, allocations: 3.844 kB / 443.2 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.4822, allocations: 22.48 kB / 443.3 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.678e-06/0.4822, allocations: 3.844 kB / 443.3 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.112e-05/0.4822, allocations: 4.656 kB / 443.3 MB, free: 8.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-06/0.4822, allocations: 11.78 kB / 443.3 MB, free: 8.801 MB / 314.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 5.348e-05/0.4823, allocations: 109.6 kB / 443.4 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.4823, allocations: 7.75 kB / 443.4 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.03e-05/0.4824, allocations: 12.83 kB / 443.4 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4824, allocations: 3.984 kB / 443.4 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4824, allocations: 4.609 kB / 443.4 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4824, allocations: 4.359 kB / 443.4 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.4826, allocations: 167.6 kB / 443.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.4826, allocations: 0 / 443.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.4827, allocations: 22.5 kB / 443.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.4827, allocations: 0 / 443.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.4827, allocations: 5.078 kB / 443.6 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4827, allocations: 3.906 kB / 443.6 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4828, allocations: 4 kB / 443.6 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002174/0.483, allocations: 201.8 kB / 443.8 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.483, allocations: 82.05 kB / 443.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.4831, allocations: 0 / 443.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.4832, allocations: 4.859 kB / 443.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.4832, allocations: 1.969 kB / 443.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.4832, allocations: 3.875 kB / 443.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.808e-05/0.4832, allocations: 97.94 kB / 444 MB, free: 8.191 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002791/0.4835, allocations: 27 kB / 444 MB, free: 8.184 MB / 314.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 9.364e-05/0.4836, allocations: 95.64 kB / 444.1 MB, free: 8.098 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001114/0.4837, allocations: 53.56 kB / 444.2 MB, free: 8.094 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.4837, allocations: 0 / 444.2 MB, free: 8.094 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.409e-05/0.4838, allocations: 27.25 kB / 444.2 MB, free: 8.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002341/0.484, allocations: 17.84 kB / 444.2 MB, free: 8.086 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005687/0.4846, allocations: 307.5 kB / 444.5 MB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.4848, allocations: 0.721 MB / 445.2 MB, free: 7.156 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4848, allocations: 0 / 445.2 MB, free: 7.156 MB / 314.7 MB Notification: Performance of Templates: time 0.003599/0.4884, allocations: 0.9815 MB / 446.2 MB, free: 7.066 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches