Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001571/0.001572, allocations: 180.5 kB / 8.132 MB, free: 2.219 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.197/1.197, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.000953/0.000953, allocations: 96.91 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08978/0.09076, allocations: 55.85 MB / 336.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.2632, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2452/0.5084, allocations: 124.8 MB / 0.4998 GB, free: 104.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002112/0.5087, allocations: 106.1 kB / 0.4999 GB, free: 104.7 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.5788/1.087, allocations: 199.9 MB / 0.6951 GB, free: 26.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/1.087, allocations: 11.78 kB / 0.6952 GB, free: 26.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/1.099, allocations: 1.928 MB / 0.697 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01697/1.116, allocations: 7.091 MB / 0.704 GB, free: 24.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005484/1.116, allocations: 283.1 kB / 0.7042 GB, free: 24.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002762/1.119, allocations: 0.5045 MB / 0.7047 GB, free: 24.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01688/1.136, allocations: 8.367 MB / 0.7129 GB, free: 24.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02033/1.156, allocations: 9.765 MB / 0.7224 GB, free: 23.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002477/1.157, allocations: 10.41 kB / 0.7224 GB, free: 23.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001237/1.158, allocations: 7.375 kB / 0.7224 GB, free: 23.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002539/1.158, allocations: 382.6 kB / 0.7228 GB, free: 23.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05403/1.212, allocations: 34.59 MB / 0.7566 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003005/1.215, allocations: 2.47 MB / 0.759 GB, free: 9.938 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004362/1.22, allocations: 3.468 MB / 0.7624 GB, free: 8.695 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01519/1.235, allocations: 10.15 MB / 0.7723 GB, free: 3.105 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/1.235, allocations: 78.88 kB / 0.7724 GB, free: 3.031 MB / 426.7 MB Notification: Performance of pre-optimization done (n=371): time 6.442e-06/1.235, allocations: 0 / 0.7724 GB, free: 3.031 MB / 426.7 MB Notification: Performance of matching and sorting (n=425): time 0.03045/1.265, allocations: 13.22 MB / 0.7853 GB, free: 12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/1.265, allocations: 94.73 kB / 0.7854 GB, free: 11.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004979/1.27, allocations: 3.174 MB / 0.7885 GB, free: 9.051 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003174/1.271, allocations: 29.7 kB / 0.7885 GB, free: 9.016 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001607/1.272, allocations: 3.124 MB / 0.7916 GB, free: 6.297 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/1.274, allocations: 1.384 MB / 0.7929 GB, free: 5.023 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/1.274, allocations: 0 / 0.7929 GB, free: 5.023 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002709/1.274, allocations: 0.4947 MB / 0.7934 GB, free: 4.582 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003055/1.277, allocations: 1.974 MB / 0.7953 GB, free: 2.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003851/1.281, allocations: 3.397 MB / 0.7986 GB, free: 14.94 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004698/1.286, allocations: 2.702 MB / 0.8013 GB, free: 12.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/1.286, allocations: 12 kB / 0.8013 GB, free: 12.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=647) (initialization): time 0.01172/1.297, allocations: 6.494 MB / 0.8076 GB, free: 6.969 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/1.297, allocations: 4 kB / 0.8076 GB, free: 6.965 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.414e-05/1.298, allocations: 48 kB / 0.8077 GB, free: 6.918 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002/1.3, allocations: 0.7145 MB / 0.8084 GB, free: 6.301 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005006/1.305, allocations: 1.167 MB / 0.8095 GB, free: 5.297 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/1.315, allocations: 9.442 MB / 0.8187 GB, free: 11.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004286/1.319, allocations: 165.9 kB / 0.8189 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006337/1.32, allocations: 219.3 kB / 0.8191 GB, free: 11.65 MB / 474.7 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.0007706/1.321, allocations: 247.2 kB / 0.8193 GB, free: 11.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009576/1.322, allocations: 462.3 kB / 0.8198 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01075/1.333, allocations: 5.706 MB / 0.8254 GB, free: 6.016 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.813e-05/1.333, allocations: 40 kB / 0.8254 GB, free: 5.977 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/1.333, allocations: 12 kB / 0.8254 GB, free: 5.965 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.59e-05/1.333, allocations: 26.59 kB / 0.8254 GB, free: 5.961 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2676/1.6, allocations: 13.05 MB / 0.8382 GB, free: 97.53 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.699e-05/1.6, allocations: 7.5 kB / 0.8382 GB, free: 97.53 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003712/1.604, allocations: 0.7207 MB / 0.8389 GB, free: 97.53 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002312/1.607, allocations: 0.9075 MB / 0.8398 GB, free: 97.48 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003987/1.607, allocations: 34.89 kB / 0.8398 GB, free: 97.48 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01237/1.619, allocations: 13.08 MB / 0.8526 GB, free: 91.23 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.619, allocations: 8.156 kB / 0.8526 GB, free: 91.23 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01212/1.631, allocations: 9.042 MB / 0.8614 GB, free: 89.95 MB / 474.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01462/1.646, allocations: 12.41 MB / 0.8735 GB, free: 88.28 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002243/1.648, allocations: 0.9944 MB / 0.8745 GB, free: 88.18 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007368/1.649, allocations: 20.44 kB / 0.8745 GB, free: 88.18 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002461/1.652, allocations: 157.3 kB / 0.8747 GB, free: 88.18 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004445/1.652, allocations: 239.2 kB / 0.8749 GB, free: 88.18 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002625/1.652, allocations: 117 kB / 0.875 GB, free: 88.18 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.003103/1.655, allocations: 2.343 MB / 0.8773 GB, free: 88 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.004967/1.66, allocations: 1.427 MB / 0.8787 GB, free: 88 MB / 474.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.0007921/1.661, allocations: 0.531 MB / 0.8792 GB, free: 87.91 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.007197/1.668, allocations: 5.711 MB / 0.8848 GB, free: 87.18 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.668, allocations: 0 / 0.8848 GB, free: 87.18 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004373/1.673, allocations: 3.348 MB / 0.8881 GB, free: 86.58 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/1.677, allocations: 0.7312 MB / 0.8888 GB, free: 86.56 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/1.699, allocations: 12.37 MB / 0.9009 GB, free: 84.07 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005707/1.705, allocations: 5.553 MB / 0.9063 GB, free: 83.22 MB / 474.8 MB Notification: Performance of SimCode: time 5.91e-07/1.705, allocations: 0 / 0.9063 GB, free: 83.22 MB / 474.8 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1)