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") [: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 trunk/package.mo): time 0.001422/0.001422, allocations: 194.9 kB / 8.538 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001118, allocations: 91.09 kB / 286.3 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.036e-06/8.075e-06, allocations: 3.938 kB / 343.1 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 51.47 MB / 394.6 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2983/0.4042, allocations: 78.43 MB / 473 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.4045, allocations: 69.05 kB / 473.1 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006975/0.4115, allocations: 2.615 MB / 475.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.4115, allocations: 0 / 475.7 MB, free: 11.8 MB / 346.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.0004338/0.4119, allocations: 411.3 kB / 476.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.412, allocations: 8.031 kB / 476.1 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.4122, allocations: 30.97 kB / 476.2 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.4123, allocations: 194.2 kB / 476.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.4124, allocations: 11.19 kB / 476.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.4124, allocations: 11.25 kB / 476.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001602/0.4126, allocations: 57.5 kB / 476.4 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.4127, allocations: 87.28 kB / 476.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.4127, allocations: 4 kB / 476.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.4128, allocations: 0 / 476.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.4128, allocations: 0 / 476.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007328/0.4135, allocations: 0.4921 MB / 477 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.4137, allocations: 59.41 kB / 477.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.994e-05/0.4137, allocations: 24.58 kB / 477.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.4138, allocations: 4 kB / 477.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.487e-05/0.4138, allocations: 44.67 kB / 477.1 MB, free: 10.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.4138, allocations: 0 / 477.1 MB, free: 10.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002069/0.414, allocations: 79.55 kB / 477.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.754e-05/0.414, allocations: 51.41 kB / 477.3 MB, free: 10.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.885e-05/0.4141, allocations: 118.1 kB / 477.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.4141, allocations: 29.7 kB / 477.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/0.4142, allocations: 117.8 kB / 477.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.4142, allocations: 30.42 kB / 477.6 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-06/0.4142, allocations: 3.391 kB / 477.6 MB, free: 10.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.284e-05/0.4143, allocations: 321.2 kB / 477.9 MB, free: 9.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.035e-05/0.4143, allocations: 27.19 kB / 477.9 MB, free: 9.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.502e-05/0.4144, allocations: 49.81 kB / 478 MB, free: 9.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.909e-05/0.4144, allocations: 29.41 kB / 478 MB, free: 9.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4144, allocations: 4 kB / 478 MB, free: 9.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001445/0.4146, allocations: 105.1 kB / 478.1 MB, free: 9.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.4146, allocations: 8 kB / 478.1 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.4146, allocations: 3.984 kB / 478.1 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.4146, allocations: 4.953 kB / 478.1 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.4148, allocations: 42.59 kB / 478.1 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.4148, allocations: 4 kB / 478.2 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.4149, allocations: 16.23 kB / 478.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.4149, allocations: 4 kB / 478.2 MB, free: 9.512 MB / 346.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 (14): * Single equations (assignments): 14 * 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.527e-05/0.415, allocations: 108.5 kB / 478.3 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.415, allocations: 7.906 kB / 478.3 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.16e-05/0.4151, allocations: 15.66 kB / 478.3 MB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.4151, allocations: 3.906 kB / 478.3 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4151, allocations: 0 / 478.3 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4151, allocations: 4 kB / 478.3 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.4153, allocations: 184.2 kB / 478.5 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.4153, allocations: 1.594 kB / 478.5 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.4155, allocations: 40.42 kB / 478.5 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4155, allocations: 0 / 478.5 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.4155, allocations: 3.906 kB / 478.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.4155, allocations: 4 kB / 478.5 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4155, allocations: 0 / 478.5 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002107/0.4157, allocations: 211.2 kB / 478.7 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.721e-05/0.4158, allocations: 92.67 kB / 478.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.4158, allocations: 0 / 478.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.4159, allocations: 16.08 kB / 478.8 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.849e-05/0.416, allocations: 2.953 kB / 478.9 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.416, allocations: 4 kB / 478.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.794e-05/0.416, allocations: 100.5 kB / 479 MB, free: 8.762 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002423/0.4163, allocations: 31.84 kB / 479 MB, free: 8.73 MB / 346.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 (9): * Single equations (assignments): 9 * 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.0001087/0.4164, allocations: 102.2 kB / 479.1 MB, free: 8.625 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001403/0.4165, allocations: 60.91 kB / 479.1 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.4165, allocations: 0 / 479.1 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.696e-05/0.4166, allocations: 35.31 kB / 479.2 MB, free: 8.559 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.4168, allocations: 21.06 kB / 479.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005656/0.4174, allocations: 314.3 kB / 479.5 MB, free: 8.266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.4176, allocations: 0.7343 MB / 480.2 MB, free: 7.527 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4176, allocations: 0 / 480.2 MB, free: 7.527 MB / 346.7 MB Notification: Performance of Templates: time 0.003355/0.421, allocations: 1.242 MB / 481.5 MB, free: 6.84 MB / 346.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/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