Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",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.001004/0.001004, allocations: 202.5 kB / 8.537 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.079/1.079, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008638/0.0008638, allocations: 93.72 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08703/0.08792, allocations: 56.93 MB / 343.3 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07648/0.1644, allocations: 51.48 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.3736, allocations: 125.9 MB / 0.5084 GB, free: 15.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.3739, allocations: 101.7 kB / 0.5085 GB, free: 15.9 MB / 394.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.5168/0.8907, allocations: 206 MB / 0.7098 GB, free: 30.44 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.8908, allocations: 12 kB / 0.7098 GB, free: 30.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009162/0.8999, allocations: 2.034 MB / 0.7118 GB, free: 28.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.9117, allocations: 7.144 MB / 0.7187 GB, free: 21.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.9119, allocations: 284 kB / 0.719 GB, free: 21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009153/0.9128, allocations: 0.4998 MB / 0.7195 GB, free: 20.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01169/0.9245, allocations: 8.372 MB / 0.7277 GB, free: 12.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01278/0.9373, allocations: 9.759 MB / 0.7372 GB, free: 2.109 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001582/0.9374, allocations: 11.91 kB / 0.7372 GB, free: 2.098 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00065/0.9381, allocations: 8 kB / 0.7372 GB, free: 2.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002027/0.9383, allocations: 377.5 kB / 0.7376 GB, free: 1.719 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2522/1.19, allocations: 34.77 MB / 0.7715 GB, free: 73.73 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/1.193, allocations: 2.485 MB / 0.774 GB, free: 73.71 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004248/1.197, allocations: 3.622 MB / 0.7775 GB, free: 73.67 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01295/1.21, allocations: 11.26 MB / 0.7885 GB, free: 70.65 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/1.21, allocations: 75.41 kB / 0.7886 GB, free: 70.61 MB / 442.8 MB Notification: Performance of pre-optimization done (n=371): time 4.769e-06/1.21, allocations: 0 / 0.7886 GB, free: 70.61 MB / 442.8 MB Notification: Performance of matching and sorting (n=425): time 0.02132/1.232, allocations: 12.87 MB / 0.8011 GB, free: 68.62 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/1.232, allocations: 93.8 kB / 0.8012 GB, free: 68.55 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003738/1.236, allocations: 3.204 MB / 0.8044 GB, free: 68.26 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001991/1.236, allocations: 25.7 kB / 0.8044 GB, free: 68.23 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009993/1.237, allocations: 3.13 MB / 0.8074 GB, free: 66.36 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007021/1.238, allocations: 1.375 MB / 0.8088 GB, free: 65.27 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/1.238, allocations: 0 / 0.8088 GB, free: 65.27 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0001807/1.238, allocations: 0.4968 MB / 0.8093 GB, free: 64.87 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002407/1.24, allocations: 1.973 MB / 0.8112 GB, free: 64.03 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/1.243, allocations: 3.399 MB / 0.8145 GB, free: 61.41 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0037/1.247, allocations: 2.704 MB / 0.8171 GB, free: 60.37 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/1.247, allocations: 15.22 kB / 0.8172 GB, free: 60.37 MB / 442.8 MB Notification: Performance of matching and sorting (n=647) (initialization): time 0.009015/1.256, allocations: 6.49 MB / 0.8235 GB, free: 58.02 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/1.256, allocations: 3.938 kB / 0.8235 GB, free: 58.02 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.43e-05/1.256, allocations: 48.53 kB / 0.8235 GB, free: 58.02 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/1.258, allocations: 0.7153 MB / 0.8242 GB, free: 57.79 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004168/1.262, allocations: 1.17 MB / 0.8254 GB, free: 57.75 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007855/1.27, allocations: 9.436 MB / 0.8346 GB, free: 50.53 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003058/1.273, allocations: 161.3 kB / 0.8348 GB, free: 50.52 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003957/1.273, allocations: 228.4 kB / 0.835 GB, free: 50.48 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 205 * 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.0005629/1.274, allocations: 237.6 kB / 0.8352 GB, free: 50.33 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006224/1.274, allocations: 475.8 kB / 0.8357 GB, free: 50.09 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009222/1.284, allocations: 5.714 MB / 0.8412 GB, free: 47.77 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/1.284, allocations: 42.55 kB / 0.8413 GB, free: 47.77 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/1.284, allocations: 12.75 kB / 0.8413 GB, free: 47.77 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.99e-05/1.284, allocations: 17.67 kB / 0.8413 GB, free: 47.77 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01691/1.301, allocations: 12.98 MB / 0.854 GB, free: 41.94 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/1.301, allocations: 6.531 kB / 0.854 GB, free: 41.94 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/1.304, allocations: 0.724 MB / 0.8547 GB, free: 41.91 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00196/1.306, allocations: 0.8967 MB / 0.8556 GB, free: 41.63 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/1.306, allocations: 37 kB / 0.8556 GB, free: 41.62 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/1.317, allocations: 13.08 MB / 0.8684 GB, free: 31.95 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.317, allocations: 5.375 kB / 0.8684 GB, free: 31.95 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01069/1.328, allocations: 9.062 MB / 0.8772 GB, free: 27.36 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01324/1.341, allocations: 12.42 MB / 0.8894 GB, free: 15.8 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/1.343, allocations: 0.9996 MB / 0.8903 GB, free: 14.88 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006657/1.344, allocations: 15.25 kB / 0.8904 GB, free: 14.87 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002292/1.346, allocations: 161.8 kB / 0.8905 GB, free: 14.75 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003911/1.346, allocations: 241.4 kB / 0.8907 GB, free: 14.61 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002609/1.347, allocations: 115.4 kB / 0.8908 GB, free: 14.5 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.002933/1.35, allocations: 2.365 MB / 0.8932 GB, free: 12.38 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004958/1.354, allocations: 1.438 MB / 0.8946 GB, free: 10.96 MB / 442.8 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.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.0007093/1.355, allocations: 0.544 MB / 0.8951 GB, free: 10.55 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.006279/1.361, allocations: 5.712 MB / 0.9007 GB, free: 5.262 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/1.361, allocations: 0 / 0.9007 GB, free: 5.262 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003815/1.365, allocations: 3.343 MB / 0.9039 GB, free: 2.133 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/1.368, allocations: 0.7538 MB / 0.9047 GB, free: 1.531 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1428/1.511, allocations: 12.69 MB / 0.9171 GB, free: 71.89 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005623/1.517, allocations: 5.568 MB / 0.9225 GB, free: 71.04 MB / 442.8 MB Notification: Performance of SimCode: time 7.21e-07/1.517, allocations: 0 / 0.9225 GB, free: 71.04 MB / 442.8 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1)