Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_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.001074/0.001074, allocations: 199.8 kB / 8.535 MB, free: 460 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.152/1.152, allocations: 225.5 MB / 234.4 MB, free: 9.539 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008641/0.0008643, allocations: 100.5 kB / 286.3 MB, free: 5.789 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09966/0.1006, allocations: 56.9 MB / 343.2 MB, free: 12.87 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.3074, allocations: 51.45 MB / 394.7 MB, free: 47.39 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1149/0.4224, allocations: 98.22 MB / 492.9 MB, free: 9.465 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4227, allocations: 84.62 kB / 493 MB, free: 9.383 MB / 370.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.0681/0.4908, allocations: 27.01 MB / 0.5078 GB, free: 14.39 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.4908, allocations: 10.34 kB / 0.5078 GB, free: 14.39 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005762/0.4914, allocations: 182.3 kB / 0.508 GB, free: 14.21 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.4928, allocations: 0.7691 MB / 0.5087 GB, free: 13.4 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.4928, allocations: 32 kB / 0.5088 GB, free: 13.37 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.493, allocations: 63.89 kB / 0.5088 GB, free: 13.3 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001006/0.494, allocations: 0.5117 MB / 0.5093 GB, free: 12.79 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.4953, allocations: 0.7396 MB / 0.5101 GB, free: 12.03 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/0.4953, allocations: 7.984 kB / 0.5101 GB, free: 12.02 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.985e-05/0.4954, allocations: 3.906 kB / 0.5101 GB, free: 12.02 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/0.4954, allocations: 27.94 kB / 0.5101 GB, free: 11.99 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004742/0.5002, allocations: 3.762 MB / 0.5138 GB, free: 8.008 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.5004, allocations: 134.5 kB / 0.5139 GB, free: 7.871 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.5007, allocations: 129.4 kB / 0.514 GB, free: 7.742 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.5007, allocations: 8.219 kB / 0.514 GB, free: 7.734 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.5008, allocations: 38.78 kB / 0.5141 GB, free: 7.688 MB / 402.8 MB Notification: Performance of pre-optimization done (n=33): time 2.094e-06/0.5008, allocations: 0 / 0.5141 GB, free: 7.688 MB / 402.8 MB Notification: Performance of matching and sorting (n=36): time 0.001486/0.5023, allocations: 0.8761 MB / 0.5149 GB, free: 6.754 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.5023, allocations: 85.11 kB / 0.515 GB, free: 6.652 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007486/0.5031, allocations: 0.574 MB / 0.5156 GB, free: 6.074 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.5031, allocations: 25.7 kB / 0.5156 GB, free: 6.043 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.5034, allocations: 481.4 kB / 0.5161 GB, free: 5.562 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.41e-05/0.5035, allocations: 134.1 kB / 0.5162 GB, free: 5.43 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.5035, allocations: 0 / 0.5162 GB, free: 5.43 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.5037, allocations: 385.4 kB / 0.5165 GB, free: 5.047 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.5039, allocations: 113.6 kB / 0.5167 GB, free: 4.938 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003826/0.5043, allocations: 412.3 kB / 0.517 GB, free: 4.395 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/0.5046, allocations: 191.6 kB / 0.5172 GB, free: 4.207 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.5046, allocations: 0 / 0.5172 GB, free: 4.207 MB / 402.8 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008899/0.5055, allocations: 0.5598 MB / 0.5178 GB, free: 3.637 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.5055, allocations: 4 kB / 0.5178 GB, free: 3.633 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.5055, allocations: 8 kB / 0.5178 GB, free: 3.625 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001332/0.5057, allocations: 36.78 kB / 0.5178 GB, free: 3.586 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005452/0.5062, allocations: 172 kB / 0.518 GB, free: 3.418 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000987/0.5072, allocations: 1.241 MB / 0.5192 GB, free: 2.07 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.5077, allocations: 27.89 kB / 0.5192 GB, free: 2.043 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.5077, allocations: 32 kB / 0.5193 GB, free: 2.012 MB / 402.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.5079, allocations: 129.8 kB / 0.5194 GB, free: 1.879 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.508, allocations: 79.73 kB / 0.5195 GB, free: 1.801 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005661/0.5086, allocations: 317.4 kB / 0.5198 GB, free: 1.477 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.5086, allocations: 4 kB / 0.5198 GB, free: 1.473 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.5086, allocations: 0 / 0.5198 GB, free: 1.473 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5086, allocations: 0 / 0.5198 GB, free: 1.473 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.5101, allocations: 1.056 MB / 0.5208 GB, free: 352 kB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.5101, allocations: 4.219 kB / 0.5208 GB, free: 348 kB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.5104, allocations: 83.89 kB / 0.5209 GB, free: 264 kB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.243e-05/0.5105, allocations: 20.86 kB / 0.5209 GB, free: 240 kB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.5105, allocations: 5.375 kB / 0.5209 GB, free: 236 kB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008716/0.5114, allocations: 1.224 MB / 0.5221 GB, free: 14.89 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.5114, allocations: 4.797 kB / 0.5221 GB, free: 14.89 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007264/0.5122, allocations: 0.635 MB / 0.5227 GB, free: 14.17 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001012/0.5132, allocations: 1.128 MB / 0.5238 GB, free: 12.96 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.5134, allocations: 181.8 kB / 0.524 GB, free: 12.76 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.613e-05/0.5136, allocations: 4 kB / 0.524 GB, free: 12.76 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000357/0.5139, allocations: 23.98 kB / 0.524 GB, free: 12.73 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.288e-05/0.514, allocations: 25.84 kB / 0.5241 GB, free: 12.71 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.514, allocations: 8 kB / 0.5241 GB, free: 12.7 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0005147/0.5145, allocations: 439.2 kB / 0.5245 GB, free: 12.28 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.001243/0.5158, allocations: 195.9 kB / 0.5247 GB, free: 12.09 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003943/0.5162, allocations: 279.5 kB / 0.5249 GB, free: 11.82 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.0006938/0.5169, allocations: 438.5 kB / 0.5253 GB, free: 11.38 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5169, allocations: 0 / 0.5253 GB, free: 11.38 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.5172, allocations: 231.8 kB / 0.5256 GB, free: 11.15 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007596/0.518, allocations: 164.6 kB / 0.5257 GB, free: 10.99 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.5202, allocations: 1.227 MB / 0.5269 GB, free: 9.723 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007105/0.5209, allocations: 1.077 MB / 0.528 GB, free: 8.613 MB / 418.8 MB Notification: Performance of SimCode: time 3.91e-07/0.5209, allocations: 3.938 kB / 0.528 GB, free: 8.609 MB / 418.8 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat