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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) [: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.0009682/0.0009682, allocations: 178.5 kB / 8.477 MB, free: 1.84 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.193/1.193, allocations: 205.2 MB / 214.1 MB, free: 5.086 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.0008271/0.0008271, allocations: 93.97 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1901/0.191, allocations: 52.96 MB / 315 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07112/0.2621, allocations: 47.58 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.242/0.5041, allocations: 76.26 MB / 438.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.5044, allocations: 70.55 kB / 439 MB, free: 10.7 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.006533/0.511, allocations: 2.543 MB / 441.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.511, allocations: 7.594 kB / 441.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.5112, allocations: 36.84 kB / 441.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.5114, allocations: 187.8 kB / 441.7 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-06/0.5114, allocations: 7.719 kB / 441.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.922e-05/0.5115, allocations: 8.422 kB / 441.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001358/0.5116, allocations: 49.69 kB / 441.8 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.5117, allocations: 77.14 kB / 441.9 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.5117, allocations: 3.938 kB / 441.9 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.5118, allocations: 0 / 441.9 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.5118, allocations: 0 / 441.9 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00065/0.5124, allocations: 453.9 kB / 442.3 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.5126, allocations: 57.67 kB / 442.4 MB, free: 9.578 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.563e-05/0.5127, allocations: 25.53 kB / 442.4 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.5127, allocations: 4 kB / 442.4 MB, free: 9.566 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.395e-05/0.5127, allocations: 31.31 kB / 442.4 MB, free: 9.527 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.174e-06/0.5127, allocations: 0 / 442.4 MB, free: 9.527 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001759/0.5129, allocations: 75.33 kB / 442.5 MB, free: 9.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.573e-05/0.5129, allocations: 62.69 kB / 442.6 MB, free: 9.426 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.574e-05/0.513, allocations: 102.8 kB / 442.7 MB, free: 9.336 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.513, allocations: 25.7 kB / 442.7 MB, free: 9.305 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.5131, allocations: 111.1 kB / 442.8 MB, free: 9.203 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.343e-05/0.5131, allocations: 33.56 kB / 442.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.5131, allocations: 0 / 442.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.154e-05/0.5132, allocations: 317.2 kB / 443.1 MB, free: 8.871 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.509e-05/0.5132, allocations: 19.19 kB / 443.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.647e-05/0.5133, allocations: 44.31 kB / 443.2 MB, free: 8.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.691e-05/0.5133, allocations: 32.95 kB / 443.2 MB, free: 8.832 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5134, allocations: 0 / 443.2 MB, free: 8.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001341/0.5135, allocations: 98.91 kB / 443.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.5135, allocations: 10.33 kB / 443.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5135, allocations: 0 / 443.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.5135, allocations: 0 / 443.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.5137, allocations: 29.84 kB / 443.4 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.5137, allocations: 0 / 443.4 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.629e-05/0.5138, allocations: 12.17 kB / 443.4 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.5138, allocations: 8.031 kB / 443.4 MB, free: 8.777 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 4.499e-05/0.5138, allocations: 108.9 kB / 443.5 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.5139, allocations: 7.438 kB / 443.5 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.5139, allocations: 14.61 kB / 443.5 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.5139, allocations: 0 / 443.5 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5139, allocations: 3.906 kB / 443.5 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.5139, allocations: 8.312 kB / 443.5 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.5141, allocations: 162.5 kB / 443.7 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.5141, allocations: 4.703 kB / 443.7 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.5142, allocations: 21.67 kB / 443.7 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.5142, allocations: 0 / 443.7 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.5143, allocations: 0.5625 kB / 443.7 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.5143, allocations: 3.906 kB / 443.7 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5143, allocations: 0 / 443.7 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001921/0.5145, allocations: 206.6 kB / 443.9 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002673/0.5147, allocations: 0.5916 MB / 444.5 MB, free: 7.828 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.35e-05/0.5148, allocations: 81.53 kB / 444.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.5148, allocations: 4.406 kB / 444.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.345e-05/0.5149, allocations: 0.6094 kB / 444.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.747e-05/0.5149, allocations: 2.156 kB / 444.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.5149, allocations: 3.812 kB / 444.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.711e-05/0.515, allocations: 91.84 kB / 444.7 MB, free: 7.656 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008905/0.5159, allocations: 35.03 kB / 444.7 MB, free: 7.641 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 0.0001171/0.516, allocations: 99.97 kB / 444.8 MB, free: 7.551 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000119/0.5161, allocations: 58.73 kB / 444.9 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.5161, allocations: 192 / 444.9 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.171e-05/0.5162, allocations: 26.12 kB / 444.9 MB, free: 7.543 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.5164, allocations: 17.36 kB / 444.9 MB, free: 7.539 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000591/0.517, allocations: 300.2 kB / 445.2 MB, free: 7.324 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.5172, allocations: 0.7294 MB / 445.9 MB, free: 6.617 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5173, allocations: 0 / 445.9 MB, free: 6.617 MB / 314.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat