Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",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.001606/0.001606, allocations: 186 kB / 8.137 MB, free: 2.188 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.23/1.23, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009988/0.0009987, allocations: 99.45 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0895/0.09052, allocations: 55.84 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.2778, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2546/0.5325, allocations: 136.6 MB / 0.5113 GB, free: 100.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.5328, allocations: 94.06 kB / 0.5114 GB, free: 100.5 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.3155/0.8482, allocations: 135.5 MB / 0.6438 GB, free: 12.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.8483, allocations: 8 kB / 0.6438 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006439/0.8547, allocations: 1.163 MB / 0.6449 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/0.8661, allocations: 4.934 MB / 0.6497 GB, free: 6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.8663, allocations: 192 kB / 0.6499 GB, free: 5.812 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007967/0.8671, allocations: 339.8 kB / 0.6502 GB, free: 5.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009645/0.8767, allocations: 5.342 MB / 0.6554 GB, free: 136 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1342/1.011, allocations: 6.29 MB / 0.6616 GB, free: 72.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001731/1.011, allocations: 12.25 kB / 0.6616 GB, free: 72.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006975/1.012, allocations: 3.938 kB / 0.6616 GB, free: 72.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002164/1.012, allocations: 254.7 kB / 0.6618 GB, free: 72.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0308/1.043, allocations: 22.97 MB / 0.6843 GB, free: 68.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002704/1.046, allocations: 1.888 MB / 0.6861 GB, free: 67.99 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003075/1.049, allocations: 2.273 MB / 0.6883 GB, free: 67.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/1.06, allocations: 7.236 MB / 0.6954 GB, free: 66.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/1.06, allocations: 65.8 kB / 0.6955 GB, free: 66.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 5.08e-06/1.06, allocations: 0 / 0.6955 GB, free: 66.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=332): time 0.01999/1.08, allocations: 10.81 MB / 0.706 GB, free: 65.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/1.08, allocations: 90.27 kB / 0.7061 GB, free: 64.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003272/1.083, allocations: 2.412 MB / 0.7085 GB, free: 64.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000294/1.083, allocations: 25.7 kB / 0.7085 GB, free: 64.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008641/1.084, allocations: 2.118 MB / 0.7106 GB, free: 63.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007434/1.085, allocations: 1.078 MB / 0.7116 GB, free: 62.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/1.085, allocations: 0 / 0.7116 GB, free: 62.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/1.085, allocations: 469.1 kB / 0.7121 GB, free: 62.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/1.088, allocations: 1.613 MB / 0.7136 GB, free: 62.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002553/1.09, allocations: 2.779 MB / 0.7163 GB, free: 61.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003087/1.093, allocations: 2.162 MB / 0.7185 GB, free: 61.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-05/1.093, allocations: 18.31 kB / 0.7185 GB, free: 61.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.008707/1.102, allocations: 5.487 MB / 0.7238 GB, free: 60.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/1.102, allocations: 3.312 kB / 0.7238 GB, free: 60.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-05/1.102, allocations: 42.62 kB / 0.7239 GB, free: 60.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/1.104, allocations: 0.8638 MB / 0.7247 GB, free: 60.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004198/1.108, allocations: 0.9266 MB / 0.7256 GB, free: 60.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009221/1.118, allocations: 8.96 MB / 0.7344 GB, free: 55.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003086/1.121, allocations: 153.6 kB / 0.7345 GB, free: 55.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003001/1.121, allocations: 180.9 kB / 0.7347 GB, free: 55.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 170 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005337/1.122, allocations: 218.7 kB / 0.7349 GB, free: 55.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005666/1.122, allocations: 365.8 kB / 0.7353 GB, free: 54.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/1.13, allocations: 4.843 MB / 0.74 GB, free: 52.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-05/1.13, allocations: 31.38 kB / 0.74 GB, free: 52.97 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/1.13, allocations: 15.41 kB / 0.74 GB, free: 52.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.569e-05/1.13, allocations: 15.98 kB / 0.74 GB, free: 52.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/1.146, allocations: 10.1 MB / 0.7499 GB, free: 48.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006486/1.152, allocations: 4.039 MB / 0.7539 GB, free: 47.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002736/1.155, allocations: 0.5636 MB / 0.7544 GB, free: 47.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002522/1.158, allocations: 0.9371 MB / 0.7553 GB, free: 46.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002687/1.158, allocations: 33.39 kB / 0.7553 GB, free: 46.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/1.17, allocations: 12.43 MB / 0.7675 GB, free: 37.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/1.17, allocations: 12.03 kB / 0.7675 GB, free: 37.83 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009976/1.18, allocations: 7.575 MB / 0.7749 GB, free: 34.11 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01262/1.192, allocations: 10.39 MB / 0.785 GB, free: 28.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002041/1.195, allocations: 0.7924 MB / 0.7858 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006421/1.195, allocations: 19.28 kB / 0.7858 GB, free: 28.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.197, allocations: 138.2 kB / 0.786 GB, free: 28.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003559/1.198, allocations: 176.8 kB / 0.7861 GB, free: 28.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/1.198, allocations: 98.8 kB / 0.7862 GB, free: 28.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002553/1.2, allocations: 1.772 MB / 0.788 GB, free: 26.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004491/1.205, allocations: 1.084 MB / 0.789 GB, free: 25.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 260 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 3 * 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%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008053/1.206, allocations: 496.1 kB / 0.7895 GB, free: 25.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006401/1.212, allocations: 4.851 MB / 0.7942 GB, free: 20.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/1.212, allocations: 2.875 kB / 0.7942 GB, free: 20.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004234/1.216, allocations: 2.855 MB / 0.797 GB, free: 18.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003242/1.22, allocations: 0.5871 MB / 0.7976 GB, free: 17.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/1.235, allocations: 8.832 MB / 0.8062 GB, free: 9.621 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003816/1.239, allocations: 3.906 MB / 0.81 GB, free: 6.625 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/1.239, allocations: 0 / 0.81 GB, free: 6.625 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1)