Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 183.6 kB / 8.133 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.177/1.177, allocations: 221.4 MB / 229.9 MB, free: 3.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000977/0.0009771, allocations: 101.2 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08769/0.0887, allocations: 55.84 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.2672, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1102/0.3774, allocations: 108.8 MB / 495.9 MB, free: 9.867 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.3777, allocations: 95.88 kB / 496 MB, free: 9.773 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.3126/0.6903, allocations: 82.61 MB / 0.565 GB, free: 32.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.6903, allocations: 8 kB / 0.565 GB, free: 32.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004305/0.6946, allocations: 0.7334 MB / 0.5657 GB, free: 31.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007519/0.7022, allocations: 3.362 MB / 0.569 GB, free: 28.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.7023, allocations: 100 kB / 0.5691 GB, free: 28.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006936/0.703, allocations: 191.8 kB / 0.5693 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005712/0.7087, allocations: 3.222 MB / 0.5724 GB, free: 24.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006046/0.7148, allocations: 3.676 MB / 0.576 GB, free: 20.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.723e-05/0.7149, allocations: 3.984 kB / 0.576 GB, free: 20.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000293/0.7152, allocations: 4 kB / 0.576 GB, free: 20.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.531e-05/0.7153, allocations: 142.2 kB / 0.5762 GB, free: 20.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01738/0.7327, allocations: 13.02 MB / 0.5889 GB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.734, allocations: 1.056 MB / 0.5899 GB, free: 6.352 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/0.7358, allocations: 1.371 MB / 0.5913 GB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004671/0.7405, allocations: 3.3 MB / 0.5945 GB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.7406, allocations: 51.86 kB / 0.5945 GB, free: 1.574 MB / 378.7 MB Notification: Performance of pre-optimization done (n=153): time 3.106e-06/0.7406, allocations: 0 / 0.5945 GB, free: 1.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=173): time 0.01157/0.7522, allocations: 5.547 MB / 0.6 GB, free: 11.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.7522, allocations: 73.41 kB / 0.6 GB, free: 11.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002426/0.7547, allocations: 1.361 MB / 0.6014 GB, free: 10.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001342/0.7548, allocations: 25.7 kB / 0.6014 GB, free: 10.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006039/0.7554, allocations: 1.138 MB / 0.6025 GB, free: 9.297 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004609/0.7559, allocations: 0.5696 MB / 0.603 GB, free: 8.719 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.708e-05/0.756, allocations: 0 / 0.603 GB, free: 8.719 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.7562, allocations: 373.9 kB / 0.6034 GB, free: 8.348 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.7575, allocations: 0.824 MB / 0.6042 GB, free: 7.523 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.759, allocations: 1.28 MB / 0.6055 GB, free: 6.051 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.761, allocations: 1.107 MB / 0.6065 GB, free: 4.945 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.761, allocations: 4 kB / 0.6065 GB, free: 4.941 MB / 394.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.00495/0.766, allocations: 2.741 MB / 0.6092 GB, free: 2.195 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.766, allocations: 4 kB / 0.6092 GB, free: 2.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.766, allocations: 12 kB / 0.6092 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.7674, allocations: 0.501 MB / 0.6097 GB, free: 1.672 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001841/0.7693, allocations: 439.3 kB / 0.6101 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007746/0.7771, allocations: 5.966 MB / 0.616 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.7784, allocations: 43.88 kB / 0.616 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.7786, allocations: 80 kB / 0.6161 GB, free: 10.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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): 207 * 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%) 1,(7,69.4%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002854/0.7789, allocations: 156.5 kB / 0.6162 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/0.7792, allocations: 185.7 kB / 0.6164 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004786/0.784, allocations: 2.652 MB / 0.619 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.784, allocations: 19.91 kB / 0.619 GB, free: 7.848 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.784, allocations: 8 kB / 0.619 GB, free: 7.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.784, allocations: 7.969 kB / 0.619 GB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009105/0.7931, allocations: 5.718 MB / 0.6246 GB, free: 2.012 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.7932, allocations: 7.984 kB / 0.6246 GB, free: 2.004 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001369/0.7945, allocations: 259.7 kB / 0.6249 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001343/0.7959, allocations: 0.4921 MB / 0.6254 GB, free: 1.242 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.796, allocations: 11.98 kB / 0.6254 GB, free: 1.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009471/0.8055, allocations: 9.797 MB / 0.6349 GB, free: 6.863 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.8055, allocations: 0 / 0.6349 GB, free: 6.863 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005933/0.8115, allocations: 3.966 MB / 0.6388 GB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007713/0.8192, allocations: 5.596 MB / 0.6443 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.8203, allocations: 470.6 kB / 0.6447 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003242/0.8206, allocations: 12 kB / 0.6447 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.8217, allocations: 55.89 kB / 0.6448 GB, free: 12.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.822, allocations: 97.84 kB / 0.6449 GB, free: 12.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.8221, allocations: 47.98 kB / 0.6449 GB, free: 12.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001592/0.8237, allocations: 1.019 MB / 0.6459 GB, free: 11.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00277/0.8265, allocations: 0.5936 MB / 0.6465 GB, free: 10.77 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.stator.stray.Phi.re,aimc.stator.stray.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * 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 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005491/0.827, allocations: 345.3 kB / 0.6468 GB, free: 10.44 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004178/0.8312, allocations: 2.424 MB / 0.6492 GB, free: 7.996 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.8312, allocations: 0 / 0.6492 GB, free: 7.996 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002358/0.8336, allocations: 1.638 MB / 0.6508 GB, free: 6.312 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.8354, allocations: 360.5 kB / 0.6511 GB, free: 5.961 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009723/0.8452, allocations: 4.971 MB / 0.656 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1143/0.9595, allocations: 2.566 MB / 0.6585 GB, free: 139.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/0.9595, allocations: 0 / 0.6585 GB, free: 139.2 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat