Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",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.0009689/0.0009689, allocations: 197.9 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.101/1.101, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008514/0.0008514, allocations: 91.92 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08786/0.08874, allocations: 56.92 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07851/0.1673, allocations: 51.47 MB / 394.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2186/0.3859, allocations: 109.2 MB / 0.4921 GB, free: 432 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.3862, allocations: 91.14 kB / 0.4922 GB, free: 384 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.2882/0.6744, allocations: 85.01 MB / 0.5752 GB, free: 121.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.6744, allocations: 8.375 kB / 0.5752 GB, free: 121.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003839/0.6783, allocations: 0.7325 MB / 0.5759 GB, free: 121.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00589/0.6842, allocations: 3.311 MB / 0.5792 GB, free: 120.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.759e-05/0.6843, allocations: 104.1 kB / 0.5793 GB, free: 120.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003433/0.6846, allocations: 189.1 kB / 0.5794 GB, free: 120.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004448/0.6891, allocations: 3.157 MB / 0.5825 GB, free: 120.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004658/0.6937, allocations: 3.639 MB / 0.5861 GB, free: 120.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.705e-05/0.6938, allocations: 7.25 kB / 0.5861 GB, free: 120.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002367/0.6941, allocations: 7.25 kB / 0.5861 GB, free: 120.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.715e-05/0.6942, allocations: 149.4 kB / 0.5862 GB, free: 120.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01449/0.7086, allocations: 12.79 MB / 0.5987 GB, free: 118.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.7099, allocations: 1.05 MB / 0.5997 GB, free: 118 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.7115, allocations: 1.365 MB / 0.6011 GB, free: 118 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005055/0.7166, allocations: 4.263 MB / 0.6052 GB, free: 117.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.7166, allocations: 54.22 kB / 0.6053 GB, free: 117 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 2.665e-06/0.7167, allocations: 0 / 0.6053 GB, free: 117 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.006408/0.7231, allocations: 4.359 MB / 0.6095 GB, free: 116 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.965e-05/0.7231, allocations: 71.47 kB / 0.6096 GB, free: 115.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001415/0.7245, allocations: 1.23 MB / 0.6108 GB, free: 115.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.336e-05/0.7246, allocations: 28.48 kB / 0.6108 GB, free: 115.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003646/0.725, allocations: 1.146 MB / 0.612 GB, free: 115 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.7252, allocations: 0.4943 MB / 0.6124 GB, free: 114.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.303e-05/0.7253, allocations: 0 / 0.6124 GB, free: 114.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.7254, allocations: 373.9 kB / 0.6128 GB, free: 114.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008834/0.7263, allocations: 0.7062 MB / 0.6135 GB, free: 114.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009629/0.7272, allocations: 1.17 MB / 0.6146 GB, free: 113.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.7286, allocations: 0.9757 MB / 0.6156 GB, free: 113.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.7286, allocations: 10.69 kB / 0.6156 GB, free: 113.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003133/0.7317, allocations: 2.405 MB / 0.6179 GB, free: 112.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.7318, allocations: 6.312 kB / 0.6179 GB, free: 112.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.7318, allocations: 14.84 kB / 0.618 GB, free: 112.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005631/0.7323, allocations: 271.2 kB / 0.6182 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/0.7338, allocations: 402.8 kB / 0.6186 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.7373, allocations: 5.374 MB / 0.6239 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.7383, allocations: 44.08 kB / 0.6239 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.7384, allocations: 76.09 kB / 0.624 GB, free: 107.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002146/0.7387, allocations: 152 kB / 0.6241 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.7389, allocations: 171.8 kB / 0.6243 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003277/0.7421, allocations: 2.298 MB / 0.6265 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.7422, allocations: 14.31 kB / 0.6265 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.7422, allocations: 5.812 kB / 0.6265 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.7422, allocations: 7.453 kB / 0.6265 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005992/0.7482, allocations: 5.025 MB / 0.6315 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.7482, allocations: 3.344 kB / 0.6315 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009286/0.7491, allocations: 215.2 kB / 0.6317 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009768/0.7501, allocations: 448.4 kB / 0.6321 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.195e-05/0.7502, allocations: 21.12 kB / 0.6321 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006471/0.7567, allocations: 9.461 MB / 0.6414 GB, free: 95.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.7567, allocations: 4.812 kB / 0.6414 GB, free: 95.89 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003735/0.7605, allocations: 3.364 MB / 0.6446 GB, free: 94.18 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004743/0.7652, allocations: 4.773 MB / 0.6493 GB, free: 91.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006192/0.7659, allocations: 421.5 kB / 0.6497 GB, free: 91.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002471/0.7661, allocations: 11.5 kB / 0.6497 GB, free: 91.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008657/0.767, allocations: 54.97 kB / 0.6498 GB, free: 91.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.7671, allocations: 81.02 kB / 0.6498 GB, free: 91.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.374e-05/0.7672, allocations: 54.72 kB / 0.6499 GB, free: 91.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001078/0.7683, allocations: 0.9149 MB / 0.6508 GB, free: 90.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002413/0.7708, allocations: 0.5637 MB / 0.6513 GB, free: 90.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004528/0.7712, allocations: 364.1 kB / 0.6517 GB, free: 90.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.7738, allocations: 2.151 MB / 0.6538 GB, free: 89.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.7738, allocations: 1.25 kB / 0.6538 GB, free: 89.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.7756, allocations: 1.473 MB / 0.6552 GB, free: 88.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.777, allocations: 348.9 kB / 0.6556 GB, free: 88.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007278/0.7843, allocations: 4.549 MB / 0.66 GB, free: 86.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001936/0.7862, allocations: 2.49 MB / 0.6624 GB, free: 85.74 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7862, allocations: 0 / 0.6624 GB, free: 85.74 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat