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.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,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 178.1 kB / 8.475 MB, free: 1.852 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.141/1.141, allocations: 205.2 MB / 214.1 MB, free: 5.172 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.0009197/0.0009198, allocations: 83.39 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1534/0.1544, allocations: 52.98 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05989/0.2143, allocations: 47.58 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2549/0.4692, allocations: 134.9 MB / 497.6 MB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.4695, allocations: 80.08 kB / 497.6 MB, free: 6.648 MB / 346.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.4597/0.9292, allocations: 135.1 MB / 0.6179 GB, free: 73.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.9293, allocations: 7.781 kB / 0.6179 GB, free: 73.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006634/0.9359, allocations: 1.172 MB / 0.6191 GB, free: 73.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01178/0.9477, allocations: 4.916 MB / 0.6239 GB, free: 72.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/0.948, allocations: 184.3 kB / 0.624 GB, free: 72.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001393/0.9494, allocations: 338.8 kB / 0.6244 GB, free: 72.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01042/0.9598, allocations: 5.345 MB / 0.6296 GB, free: 70.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01257/0.9724, allocations: 6.3 MB / 0.6357 GB, free: 67.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/0.9726, allocations: 12.16 kB / 0.6357 GB, free: 67.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005102/0.9731, allocations: 4.406 kB / 0.6357 GB, free: 67.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002299/0.9734, allocations: 253.7 kB / 0.636 GB, free: 67.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0375/1.011, allocations: 23 MB / 0.6584 GB, free: 49.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002876/1.014, allocations: 1.885 MB / 0.6603 GB, free: 48.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003024/1.017, allocations: 2.27 MB / 0.6625 GB, free: 46.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/1.029, allocations: 7.248 MB / 0.6696 GB, free: 39.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/1.029, allocations: 64.73 kB / 0.6696 GB, free: 39.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=280): time 5.34e-06/1.029, allocations: 4 kB / 0.6697 GB, free: 39.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=332): time 0.02049/1.05, allocations: 10.82 MB / 0.6802 GB, free: 28.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/1.05, allocations: 85.98 kB / 0.6803 GB, free: 28.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/1.053, allocations: 2.412 MB / 0.6827 GB, free: 26.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003055/1.054, allocations: 29.7 kB / 0.6827 GB, free: 26.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007077/1.054, allocations: 2.114 MB / 0.6847 GB, free: 24.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006854/1.055, allocations: 1.082 MB / 0.6858 GB, free: 23.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/1.055, allocations: 0 / 0.6858 GB, free: 23.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/1.055, allocations: 470.6 kB / 0.6863 GB, free: 22.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002158/1.058, allocations: 1.617 MB / 0.6878 GB, free: 20.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002541/1.06, allocations: 2.78 MB / 0.6905 GB, free: 17.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003108/1.063, allocations: 2.164 MB / 0.6927 GB, free: 15.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.692e-05/1.063, allocations: 12 kB / 0.6927 GB, free: 15.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.008498/1.072, allocations: 5.478 MB / 0.698 GB, free: 9.898 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/1.072, allocations: 4.094 kB / 0.698 GB, free: 9.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.298e-05/1.072, allocations: 44 kB / 0.6981 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002072/1.074, allocations: 0.865 MB / 0.6989 GB, free: 8.973 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003632/1.078, allocations: 0.9322 MB / 0.6998 GB, free: 8.039 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009577/1.087, allocations: 8.968 MB / 0.7086 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003201/1.09, allocations: 151.8 kB / 0.7087 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003424/1.091, allocations: 179.9 kB / 0.7089 GB, free: 14.41 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.0005636/1.091, allocations: 223.7 kB / 0.7091 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006248/1.092, allocations: 363.5 kB / 0.7095 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008919/1.101, allocations: 4.848 MB / 0.7142 GB, free: 8.898 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/1.101, allocations: 28 kB / 0.7142 GB, free: 8.871 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/1.101, allocations: 12 kB / 0.7142 GB, free: 8.859 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.044e-05/1.101, allocations: 15.94 kB / 0.7142 GB, free: 8.844 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1381/1.239, allocations: 10.12 MB / 0.7241 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006061/1.245, allocations: 4.025 MB / 0.7281 GB, free: 121.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00267/1.248, allocations: 0.5741 MB / 0.7286 GB, free: 121.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002389/1.25, allocations: 0.9255 MB / 0.7295 GB, free: 121.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002173/1.25, allocations: 36.11 kB / 0.7296 GB, free: 121.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/1.262, allocations: 12.42 MB / 0.7417 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/1.262, allocations: 5.656 kB / 0.7417 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01019/1.272, allocations: 7.586 MB / 0.7491 GB, free: 114.4 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01237/1.285, allocations: 10.38 MB / 0.7592 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/1.287, allocations: 0.7891 MB / 0.76 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006411/1.287, allocations: 19.88 kB / 0.76 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002016/1.289, allocations: 136.4 kB / 0.7602 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003406/1.29, allocations: 184 kB / 0.7603 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002121/1.29, allocations: 89.72 kB / 0.7604 GB, free: 112.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002385/1.292, allocations: 1.776 MB / 0.7621 GB, free: 112.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004243/1.296, allocations: 1.083 MB / 0.7632 GB, free: 112.6 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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000749/1.297, allocations: 492.7 kB / 0.7637 GB, free: 112.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006468/1.304, allocations: 4.843 MB / 0.7684 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.304, allocations: 0 / 0.7684 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00398/1.308, allocations: 2.865 MB / 0.7712 GB, free: 109.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003086/1.311, allocations: 0.5847 MB / 0.7718 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/1.325, allocations: 8.832 MB / 0.7804 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003788/1.329, allocations: 3.906 MB / 0.7842 GB, free: 105 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/1.329, allocations: 0 / 0.7842 GB, free: 105 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)