Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",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 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 179.8 kB / 8.478 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.12/1.12, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009321/0.0009321, allocations: 94.7 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1525/0.1534, allocations: 52.98 MB / 315.1 MB, free: 41.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06393/0.2174, allocations: 47.57 MB / 362.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2452/0.4627, allocations: 121.6 MB / 484.3 MB, free: 3.445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.4629, allocations: 84.77 kB / 484.3 MB, free: 3.402 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.5961/1.059, allocations: 198.9 MB / 0.6673 GB, free: 64.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/1.059, allocations: 13.25 kB / 0.6673 GB, free: 64.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01115/1.07, allocations: 1.93 MB / 0.6692 GB, free: 63.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01819/1.088, allocations: 7.094 MB / 0.6761 GB, free: 59.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003891/1.089, allocations: 288.3 kB / 0.6764 GB, free: 59.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002252/1.091, allocations: 0.4983 MB / 0.6768 GB, free: 59.81 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01643/1.108, allocations: 8.364 MB / 0.685 GB, free: 51.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02114/1.129, allocations: 9.781 MB / 0.6946 GB, free: 43.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002704/1.129, allocations: 7.906 kB / 0.6946 GB, free: 43.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001474/1.131, allocations: 4 kB / 0.6946 GB, free: 43.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000229/1.131, allocations: 377.5 kB / 0.6949 GB, free: 42.81 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05774/1.189, allocations: 34.64 MB / 0.7288 GB, free: 7.676 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003747/1.192, allocations: 2.479 MB / 0.7312 GB, free: 5.199 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004681/1.197, allocations: 3.437 MB / 0.7345 GB, free: 1.762 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2535/1.451, allocations: 10.09 MB / 0.7444 GB, free: 97.85 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/1.451, allocations: 72.83 kB / 0.7445 GB, free: 97.8 MB / 426.8 MB Notification: Performance of pre-optimization done (n=369): time 6.201e-06/1.451, allocations: 0 / 0.7445 GB, free: 97.8 MB / 426.8 MB Notification: Performance of matching and sorting (n=423): time 0.02471/1.475, allocations: 12.83 MB / 0.757 GB, free: 96.47 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/1.475, allocations: 93.34 kB / 0.7571 GB, free: 96.4 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004546/1.48, allocations: 3.198 MB / 0.7602 GB, free: 96.11 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003095/1.48, allocations: 29.11 kB / 0.7602 GB, free: 96.08 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/1.482, allocations: 3.124 MB / 0.7633 GB, free: 94.28 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009019/1.482, allocations: 1.376 MB / 0.7646 GB, free: 93.36 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/1.483, allocations: 0 / 0.7646 GB, free: 93.36 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002259/1.483, allocations: 0.4918 MB / 0.7651 GB, free: 93.05 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002743/1.486, allocations: 1.966 MB / 0.767 GB, free: 93.04 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003111/1.489, allocations: 3.396 MB / 0.7704 GB, free: 91.34 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004131/1.493, allocations: 2.698 MB / 0.773 GB, free: 91.3 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.21e-05/1.493, allocations: 11.66 kB / 0.773 GB, free: 91.3 MB / 426.8 MB Notification: Performance of matching and sorting (n=647) (initialization): time 0.01065/1.504, allocations: 6.477 MB / 0.7793 GB, free: 90.78 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/1.504, allocations: 3.031 kB / 0.7793 GB, free: 90.78 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.789e-05/1.504, allocations: 52.89 kB / 0.7794 GB, free: 90.78 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/1.506, allocations: 0.7203 MB / 0.7801 GB, free: 90.73 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004822/1.511, allocations: 1.175 MB / 0.7812 GB, free: 90.73 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008872/1.519, allocations: 9.445 MB / 0.7905 GB, free: 85.56 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004329/1.524, allocations: 164.9 kB / 0.7906 GB, free: 85.55 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005485/1.524, allocations: 218.4 kB / 0.7908 GB, free: 85.55 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (594): * Single equations (assignments): 586 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007548/1.525, allocations: 241.9 kB / 0.791 GB, free: 85.41 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000764/1.526, allocations: 466.5 kB / 0.7915 GB, free: 85.18 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009814/1.536, allocations: 5.687 MB / 0.797 GB, free: 83.52 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.977e-05/1.536, allocations: 39.56 kB / 0.7971 GB, free: 83.52 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.702e-05/1.536, allocations: 12.78 kB / 0.7971 GB, free: 83.52 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.393e-05/1.536, allocations: 21.23 kB / 0.7971 GB, free: 83.52 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01965/1.556, allocations: 12.94 MB / 0.8098 GB, free: 77.69 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/1.556, allocations: 6.812 kB / 0.8098 GB, free: 77.69 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003429/1.559, allocations: 0.7323 MB / 0.8105 GB, free: 77.67 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002397/1.561, allocations: 0.8975 MB / 0.8114 GB, free: 77.39 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002666/1.562, allocations: 44 kB / 0.8114 GB, free: 77.38 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/1.574, allocations: 13.09 MB / 0.8242 GB, free: 67.75 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.574, allocations: 5.219 kB / 0.8242 GB, free: 67.75 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01276/1.587, allocations: 9.095 MB / 0.8331 GB, free: 63.19 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01558/1.602, allocations: 12.42 MB / 0.8452 GB, free: 55.91 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002354/1.605, allocations: 0.9966 MB / 0.8462 GB, free: 55 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008117/1.606, allocations: 23.75 kB / 0.8462 GB, free: 54.98 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002563/1.608, allocations: 160.5 kB / 0.8463 GB, free: 54.87 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004512/1.609, allocations: 237.5 kB / 0.8466 GB, free: 54.74 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/1.609, allocations: 121.8 kB / 0.8467 GB, free: 54.63 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.003264/1.612, allocations: 2.35 MB / 0.849 GB, free: 52.52 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.005253/1.618, allocations: 1.417 MB / 0.8504 GB, free: 51.11 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 339 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008081/1.618, allocations: 0.5111 MB / 0.8509 GB, free: 50.76 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.007364/1.626, allocations: 5.699 MB / 0.8564 GB, free: 45.48 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.86e-06/1.626, allocations: 0 / 0.8564 GB, free: 45.48 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004463/1.63, allocations: 3.375 MB / 0.8597 GB, free: 42.37 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004304/1.635, allocations: 0.7375 MB / 0.8604 GB, free: 41.78 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0232/1.658, allocations: 12.41 MB / 0.8726 GB, free: 30.54 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005821/1.664, allocations: 5.555 MB / 0.878 GB, free: 26.36 MB / 426.8 MB Notification: Performance of SimCode: time 7.12e-07/1.664, allocations: 0 / 0.878 GB, free: 26.36 MB / 426.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1)