Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",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 trunk/package.mo): time 0.001242/0.001242, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.113/1.113, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008488/0.0008486, allocations: 88.83 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0964/0.09728, allocations: 56.91 MB / 343.3 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09632/0.1936, allocations: 51.47 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.262/0.4557, allocations: 98.67 MB / 493.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4559, allocations: 81.33 kB / 493.5 MB, free: 10.97 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.07578/0.5317, allocations: 28.95 MB / 0.5102 GB, free: 3.012 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.5318, allocations: 8 kB / 0.5102 GB, free: 3.004 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008051/0.5326, allocations: 194.4 kB / 0.5104 GB, free: 2.812 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001663/0.5343, allocations: 0.7886 MB / 0.5111 GB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/0.5343, allocations: 32 kB / 0.5112 GB, free: 1.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.5345, allocations: 63.89 kB / 0.5112 GB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001151/0.5356, allocations: 0.5312 MB / 0.5118 GB, free: 1.359 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.5371, allocations: 0.7552 MB / 0.5125 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.402e-05/0.5371, allocations: 0.9375 kB / 0.5125 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-05/0.5372, allocations: 0.6562 kB / 0.5125 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.62e-05/0.5373, allocations: 27.98 kB / 0.5125 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00544/0.5427, allocations: 3.738 MB / 0.5162 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.543, allocations: 185.8 kB / 0.5163 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005072/0.5435, allocations: 262 kB / 0.5166 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.699e-05/0.5436, allocations: 4 kB / 0.5166 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.5436, allocations: 34.56 kB / 0.5166 GB, free: 12.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 2.434e-06/0.5436, allocations: 0 / 0.5166 GB, free: 12.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.002076/0.5457, allocations: 1.108 MB / 0.5177 GB, free: 10.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.5458, allocations: 89.48 kB / 0.5178 GB, free: 10.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008132/0.5466, allocations: 0.5702 MB / 0.5184 GB, free: 10.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.5466, allocations: 33.69 kB / 0.5184 GB, free: 10.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.5469, allocations: 477.6 kB / 0.5188 GB, free: 9.758 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.547, allocations: 157.7 kB / 0.519 GB, free: 9.602 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.14e-05/0.547, allocations: 0 / 0.519 GB, free: 9.602 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.5472, allocations: 382.8 kB / 0.5194 GB, free: 9.219 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.5474, allocations: 137.6 kB / 0.5195 GB, free: 9.086 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/0.5478, allocations: 427.3 kB / 0.5199 GB, free: 8.539 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003522/0.5482, allocations: 212.6 kB / 0.5201 GB, free: 8.328 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.5482, allocations: 4 kB / 0.5201 GB, free: 8.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00113/0.5493, allocations: 0.676 MB / 0.5208 GB, free: 7.637 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.5494, allocations: 8 kB / 0.5208 GB, free: 7.629 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.5494, allocations: 8 kB / 0.5208 GB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003209/0.5497, allocations: 97.67 kB / 0.5209 GB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005616/0.5503, allocations: 159.8 kB / 0.521 GB, free: 7.363 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002475/0.5528, allocations: 2.898 MB / 0.5239 GB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005669/0.5534, allocations: 24.05 kB / 0.5239 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.638e-05/0.5534, allocations: 32 kB / 0.5239 GB, free: 4.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001373/0.5536, allocations: 133.5 kB / 0.524 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.5537, allocations: 83.06 kB / 0.5241 GB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000831/0.5545, allocations: 448.7 kB / 0.5245 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.5546, allocations: 4.188 kB / 0.5245 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.5546, allocations: 11.84 kB / 0.5246 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.5546, allocations: 3.938 kB / 0.5246 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.5565, allocations: 1.263 MB / 0.5258 GB, free: 2.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5566, allocations: 0 / 0.5258 GB, free: 2.148 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003418/0.5569, allocations: 76.03 kB / 0.5259 GB, free: 2.074 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002749/0.5572, allocations: 97.59 kB / 0.526 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.5572, allocations: 8 kB / 0.526 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.5596, allocations: 2.878 MB / 0.5288 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.5596, allocations: 4 kB / 0.5288 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001081/0.5607, allocations: 0.8085 MB / 0.5296 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001394/0.5621, allocations: 1.355 MB / 0.5309 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002895/0.5624, allocations: 184.1 kB / 0.5311 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.5626, allocations: 4 kB / 0.5311 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004358/0.563, allocations: 23.89 kB / 0.5311 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.868e-05/0.5631, allocations: 35.89 kB / 0.5311 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/0.5631, allocations: 16 kB / 0.5311 GB, free: 12.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0006496/0.5638, allocations: 435.2 kB / 0.5316 GB, free: 11.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001564/0.5654, allocations: 207.9 kB / 0.5318 GB, free: 11.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004343/0.5658, allocations: 277.8 kB / 0.532 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.5669, allocations: 0.6184 MB / 0.5326 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5669, allocations: 4.062 kB / 0.5326 GB, free: 10.69 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006325/0.5676, allocations: 399.5 kB / 0.533 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008863/0.5685, allocations: 182.9 kB / 0.5332 GB, free: 10.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002625/0.5711, allocations: 1.238 MB / 0.5344 GB, free: 8.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007723/0.5719, allocations: 1.092 MB / 0.5355 GB, free: 7.703 MB / 410.7 MB Notification: Performance of SimCode: time 6.02e-07/0.5719, allocations: 0 / 0.5355 GB, free: 7.703 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat