Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") [: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.2+maint.om/package.mo): time 0.001782/0.001782, allocations: 189.8 kB / 8.137 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.135/1.135, allocations: 194.2 MB / 202.8 MB, free: 8.754 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001898/0.001898, allocations: 123.1 kB / 247.7 MB, free: 6.262 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.797e-06/8.817e-06, allocations: 4 kB / 297.6 MB, free: 8.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08602, allocations: 44.49 MB / 342.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2342/0.3203, allocations: 107.1 MB / 449.2 MB, free: 4.609 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.3206, allocations: 85.33 kB / 449.2 MB, free: 4.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.5431/0.8638, allocations: 157.1 MB / 0.5921 GB, free: 60.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0009054/0.8647, allocations: 167.7 kB / 0.5923 GB, free: 60.28 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.02462/0.8894, allocations: 6.436 MB / 0.5986 GB, free: 56.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.8894, allocations: 6.5 kB / 0.5986 GB, free: 56.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01008/0.8995, allocations: 1.523 MB / 0.6001 GB, free: 55.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/0.9155, allocations: 5.715 MB / 0.6057 GB, free: 51.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004116/0.916, allocations: 227.9 kB / 0.6059 GB, free: 51.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002479/0.9185, allocations: 417.5 kB / 0.6063 GB, free: 51.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01696/0.9354, allocations: 6.999 MB / 0.6131 GB, free: 48.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02351/0.959, allocations: 8.102 MB / 0.621 GB, free: 39.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003414/0.9593, allocations: 4 kB / 0.621 GB, free: 39.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001897/0.9613, allocations: 7.906 kB / 0.621 GB, free: 39.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002629/0.9615, allocations: 330.1 kB / 0.6214 GB, free: 39.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05261/1.014, allocations: 27.63 MB / 0.6483 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003468/1.018, allocations: 2.129 MB / 0.6504 GB, free: 9.406 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004913/1.023, allocations: 3.016 MB / 0.6534 GB, free: 6.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1459/1.169, allocations: 8.249 MB / 0.6614 GB, free: 86.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/1.169, allocations: 76.64 kB / 0.6615 GB, free: 85.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=323): time 5.52e-06/1.169, allocations: 0 / 0.6615 GB, free: 85.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=329): time 0.02488/1.193, allocations: 8.885 MB / 0.6702 GB, free: 84.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/1.194, allocations: 85.06 kB / 0.6702 GB, free: 84.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006056/1.2, allocations: 2.374 MB / 0.6726 GB, free: 84.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004964/1.2, allocations: 33.03 kB / 0.6726 GB, free: 84.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001713/1.202, allocations: 2.456 MB / 0.675 GB, free: 83.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001384/1.203, allocations: 1.076 MB / 0.676 GB, free: 82.51 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003178/1.204, allocations: 0 / 0.676 GB, free: 82.51 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000254/1.204, allocations: 461 kB / 0.6765 GB, free: 82.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003721/1.208, allocations: 1.537 MB / 0.678 GB, free: 82.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004449/1.212, allocations: 2.566 MB / 0.6805 GB, free: 81.01 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006186/1.218, allocations: 2.128 MB / 0.6826 GB, free: 80.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.611e-05/1.218, allocations: 15.09 kB / 0.6826 GB, free: 80.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=500) (initialization): time 0.01408/1.233, allocations: 4.908 MB / 0.6874 GB, free: 80.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/1.233, allocations: 3.406 kB / 0.6874 GB, free: 80.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.076e-05/1.233, allocations: 36.03 kB / 0.6874 GB, free: 80.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/1.234, allocations: 392.7 kB / 0.6878 GB, free: 80.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00632/1.241, allocations: 0.8935 MB / 0.6887 GB, free: 80.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008035/1.249, allocations: 6.956 MB / 0.6955 GB, free: 75.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0049/1.254, allocations: 96.62 kB / 0.6955 GB, free: 75.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005867/1.254, allocations: 168.7 kB / 0.6957 GB, free: 75.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (475): * Single equations (assignments): 469 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008731/1.255, allocations: 209.7 kB / 0.6959 GB, free: 75.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008869/1.256, allocations: 350.2 kB / 0.6962 GB, free: 75.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/1.269, allocations: 4.581 MB / 0.7007 GB, free: 74.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-05/1.269, allocations: 34.59 kB / 0.7007 GB, free: 74.76 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.813e-05/1.269, allocations: 11.62 kB / 0.7008 GB, free: 74.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.966e-05/1.269, allocations: 18.61 kB / 0.7008 GB, free: 74.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02767/1.297, allocations: 10.35 MB / 0.7109 GB, free: 73.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.182e-05/1.297, allocations: 3.188 kB / 0.7109 GB, free: 73.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004254/1.302, allocations: 0.4972 MB / 0.7114 GB, free: 73.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003186/1.305, allocations: 0.8467 MB / 0.7122 GB, free: 73.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000413/1.305, allocations: 34.31 kB / 0.7122 GB, free: 73.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/1.319, allocations: 15.08 MB / 0.727 GB, free: 62.49 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/1.319, allocations: 6.094 kB / 0.727 GB, free: 62.49 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01304/1.332, allocations: 7.015 MB / 0.7338 GB, free: 59.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003291/1.335, allocations: 0.7738 MB / 0.7346 GB, free: 58.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0012/1.336, allocations: 25.25 kB / 0.7346 GB, free: 58.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003778/1.34, allocations: 102.1 kB / 0.7347 GB, free: 58.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005572/1.341, allocations: 174.1 kB / 0.7349 GB, free: 58.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003767/1.341, allocations: 100.3 kB / 0.735 GB, free: 58.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.004391/1.346, allocations: 1.745 MB / 0.7367 GB, free: 57.72 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006815/1.352, allocations: 1.087 MB / 0.7377 GB, free: 57.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (262): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0011/1.354, allocations: 448.4 kB / 0.7381 GB, free: 57.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01023/1.364, allocations: 4.373 MB / 0.7424 GB, free: 55.63 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/1.364, allocations: 3.75 kB / 0.7424 GB, free: 55.63 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007382/1.371, allocations: 2.829 MB / 0.7452 GB, free: 54.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00651/1.378, allocations: 0.6392 MB / 0.7458 GB, free: 54.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03699/1.415, allocations: 10.21 MB / 0.7558 GB, free: 49.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009211/1.424, allocations: 4.607 MB / 0.7603 GB, free: 48.31 MB / 394.7 MB Notification: Performance of SimCode: time 1.433e-06/1.424, allocations: 0 / 0.7603 GB, free: 48.31 MB / 394.7 MB Notification: Performance of Templates: time 0.1671/1.591, allocations: 52.26 MB / 0.8113 GB, free: 16.77 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)