Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") [: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.001047/0.001047, allocations: 189.9 kB / 8.139 MB, free: 2.188 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.166/1.166, allocations: 194.2 MB / 202.8 MB, free: 9.133 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.001732/0.001732, allocations: 115.6 kB / 247.7 MB, free: 6.168 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.014e-06/7.053e-06, allocations: 0 / 297.6 MB, free: 8.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08046/0.08048, allocations: 44.48 MB / 342.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2518/0.3323, allocations: 123.8 MB / 465.8 MB, free: 4.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.3326, allocations: 84.58 kB / 465.9 MB, free: 4.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.4445/0.7771, allocations: 121.9 MB / 0.574 GB, free: 54.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005091/0.7777, allocations: 149.4 kB / 0.5741 GB, free: 54.39 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: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.01559/0.7933, allocations: 5.084 MB / 0.5791 GB, free: 51.96 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.7933, allocations: 9.906 kB / 0.5791 GB, free: 51.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007022/0.8004, allocations: 1.014 MB / 0.5801 GB, free: 51.58 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/0.8132, allocations: 4.564 MB / 0.5846 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003171/0.8135, allocations: 176.3 kB / 0.5847 GB, free: 49.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001912/0.8154, allocations: 322.9 kB / 0.585 GB, free: 49.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01336/0.8288, allocations: 5.151 MB / 0.5901 GB, free: 47.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01815/0.847, allocations: 6.086 MB / 0.596 GB, free: 44.44 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001958/0.8472, allocations: 13.94 kB / 0.596 GB, free: 44.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006883/0.8479, allocations: 5.312 kB / 0.596 GB, free: 44.43 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001933/0.8481, allocations: 261.1 kB / 0.5963 GB, free: 44.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03577/0.8839, allocations: 21.52 MB / 0.6173 GB, free: 30.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.8866, allocations: 1.801 MB / 0.6191 GB, free: 29.79 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002826/0.8894, allocations: 2.166 MB / 0.6212 GB, free: 28.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.9011, allocations: 6.559 MB / 0.6276 GB, free: 24.26 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.9011, allocations: 64.64 kB / 0.6276 GB, free: 24.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=264): time 5.31e-06/0.9011, allocations: 0 / 0.6276 GB, free: 24.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=291): time 0.01689/0.918, allocations: 9.122 MB / 0.6365 GB, free: 14.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.9181, allocations: 85.64 kB / 0.6366 GB, free: 14.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004268/0.9224, allocations: 2.208 MB / 0.6388 GB, free: 12.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003814/0.9228, allocations: 25.7 kB / 0.6388 GB, free: 12.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000939/0.9237, allocations: 1.969 MB / 0.6407 GB, free: 10.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008676/0.9246, allocations: 0.9545 MB / 0.6417 GB, free: 9.633 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002839/0.9249, allocations: 3.938 kB / 0.6417 GB, free: 9.629 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.9251, allocations: 445.5 kB / 0.6421 GB, free: 9.188 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002353/0.9275, allocations: 1.444 MB / 0.6435 GB, free: 7.742 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002906/0.9304, allocations: 2.415 MB / 0.6459 GB, free: 4.898 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003219/0.9336, allocations: 1.939 MB / 0.6478 GB, free: 2.941 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.247e-05/0.9337, allocations: 8 kB / 0.6478 GB, free: 2.934 MB / 394.7 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.008741/0.9424, allocations: 4.857 MB / 0.6525 GB, free: 14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.9425, allocations: 4 kB / 0.6525 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.998e-05/0.9425, allocations: 32 kB / 0.6525 GB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001959/0.9445, allocations: 0.7249 MB / 0.6532 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003699/0.9482, allocations: 0.7996 MB / 0.654 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01086/0.9591, allocations: 9.026 MB / 0.6628 GB, free: 2.938 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003997/0.9631, allocations: 107.7 kB / 0.6629 GB, free: 2.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008717/0.9641, allocations: 152 kB / 0.6631 GB, free: 2.684 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (415): * Single equations (assignments): 409 * 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 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001248/0.9653, allocations: 200.5 kB / 0.6633 GB, free: 2.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/0.9665, allocations: 324 kB / 0.6636 GB, free: 2.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1656/1.132, allocations: 4.45 MB / 0.6679 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.692e-05/1.132, allocations: 28.22 kB / 0.668 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.302e-05/1.132, allocations: 15.03 kB / 0.668 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.381e-05/1.132, allocations: 16.03 kB / 0.668 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02628/1.159, allocations: 9.263 MB / 0.677 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.159, allocations: 3.688 kB / 0.677 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003922/1.163, allocations: 459.5 kB / 0.6775 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004505/1.167, allocations: 0.9518 MB / 0.6784 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005365/1.168, allocations: 31.77 kB / 0.6784 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02128/1.189, allocations: 14.82 MB / 0.6929 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/1.189, allocations: 5.125 kB / 0.6929 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01614/1.205, allocations: 6.841 MB / 0.6996 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003532/1.209, allocations: 0.7194 MB / 0.7003 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/1.21, allocations: 19.06 kB / 0.7003 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003848/1.214, allocations: 98.27 kB / 0.7004 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004913/1.215, allocations: 159.4 kB / 0.7006 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003307/1.215, allocations: 81.12 kB / 0.7006 GB, free: 101.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004417/1.219, allocations: 1.624 MB / 0.7022 GB, free: 100.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007502/1.227, allocations: 0.9603 MB / 0.7032 GB, free: 100.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 225 * 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 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001469/1.229, allocations: 484.4 kB / 0.7036 GB, free: 100.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01027/1.239, allocations: 4.295 MB / 0.7078 GB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.239, allocations: 3.75 kB / 0.7078 GB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006197/1.245, allocations: 2.729 MB / 0.7105 GB, free: 99.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005055/1.25, allocations: 0.6463 MB / 0.7111 GB, free: 99.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02469/1.275, allocations: 8.403 MB / 0.7193 GB, free: 97.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006818/1.282, allocations: 3.745 MB / 0.723 GB, free: 96.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/1.282, allocations: 2.297 kB / 0.723 GB, free: 96.48 MB / 410.7 MB Notification: Performance of Templates: time 0.09215/1.374, allocations: 49.22 MB / 0.7711 GB, free: 81.29 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)