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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009826/0.0009827, allocations: 182.3 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.202/1.202, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.001685/0.001685, allocations: 117.7 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003265/0.0003266, allocations: 11.94 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09546/0.09581, allocations: 44.49 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3107/0.4066, allocations: 124.6 MB / 479.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.4069, allocations: 90.08 kB / 479.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4587/0.8656, allocations: 123.6 MB / 0.5891 GB, free: 75.65 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.8656, allocations: 0 / 0.5891 GB, free: 75.65 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003475/0.866, allocations: 138.5 kB / 0.5893 GB, free: 75.52 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.01523/0.8812, allocations: 5.61 MB / 0.5947 GB, free: 69.85 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.8813, allocations: 8.031 kB / 0.5947 GB, free: 69.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005215/0.8865, allocations: 1.014 MB / 0.5957 GB, free: 68.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0104/0.8969, allocations: 4.593 MB / 0.6002 GB, free: 64.26 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002543/0.8972, allocations: 401.7 kB / 0.6006 GB, free: 63.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001239/0.8984, allocations: 0.5145 MB / 0.6011 GB, free: 63.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/0.9093, allocations: 6.926 MB / 0.6079 GB, free: 56.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.9095, allocations: 11.91 kB / 0.6079 GB, free: 56.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004451/0.9099, allocations: 230.9 kB / 0.6081 GB, free: 56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/0.9101, allocations: 246.6 kB / 0.6083 GB, free: 55.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008438/0.9185, allocations: 5.578 MB / 0.6138 GB, free: 50.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03757/0.9561, allocations: 22.44 MB / 0.6357 GB, free: 27.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006297/0.9625, allocations: 8.345 MB / 0.6438 GB, free: 18.05 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008011/0.9705, allocations: 5.313 MB / 0.649 GB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.9706, allocations: 56.56 kB / 0.6491 GB, free: 12.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=238): time 4.058e-06/0.9706, allocations: 0 / 0.6491 GB, free: 12.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=266): time 0.2406/1.211, allocations: 13 MB / 0.6618 GB, free: 68.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/1.211, allocations: 79.56 kB / 0.6619 GB, free: 68.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004455/1.216, allocations: 2.732 MB / 0.6645 GB, free: 67.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005545/1.216, allocations: 68.52 kB / 0.6646 GB, free: 67.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00175/1.218, allocations: 2.453 MB / 0.667 GB, free: 67.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008349/1.219, allocations: 0.9116 MB / 0.6679 GB, free: 67.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/1.219, allocations: 63.06 kB / 0.6679 GB, free: 67.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/1.219, allocations: 438.6 kB / 0.6684 GB, free: 66.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001957/1.221, allocations: 1.426 MB / 0.6697 GB, free: 66.78 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002362/1.224, allocations: 2.383 MB / 0.6721 GB, free: 65.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/1.227, allocations: 1.835 MB / 0.6739 GB, free: 65.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-05/1.227, allocations: 13.22 kB / 0.6739 GB, free: 65.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.008748/1.235, allocations: 4.978 MB / 0.6787 GB, free: 65.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/1.235, allocations: 18.94 kB / 0.6788 GB, free: 65.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.056e-05/1.236, allocations: 34.91 kB / 0.6788 GB, free: 65.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002814/1.238, allocations: 0.731 MB / 0.6795 GB, free: 65.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002558/1.241, allocations: 0.7659 MB / 0.6803 GB, free: 65.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009954/1.251, allocations: 10 MB / 0.69 GB, free: 59.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/1.255, allocations: 199.6 kB / 0.6902 GB, free: 59.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003004/1.255, allocations: 144.8 kB / 0.6903 GB, free: 59.89 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (386): * Single equations (assignments): 380 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003983/1.259, allocations: 1.572 MB / 0.6919 GB, free: 59.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008223/1.26, allocations: 354.9 kB / 0.6922 GB, free: 59.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007946/1.268, allocations: 4.457 MB / 0.6966 GB, free: 59.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.572e-05/1.268, allocations: 26.38 kB / 0.6966 GB, free: 59.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.036e-05/1.268, allocations: 10 kB / 0.6966 GB, free: 59.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/1.268, allocations: 14.77 kB / 0.6966 GB, free: 59.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/1.283, allocations: 9.68 MB / 0.7061 GB, free: 55.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/1.283, allocations: 3.938 kB / 0.7061 GB, free: 55.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/1.284, allocations: 426.6 kB / 0.7065 GB, free: 55.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002144/1.287, allocations: 0.9671 MB / 0.7074 GB, free: 55.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/1.287, allocations: 64.53 kB / 0.7075 GB, free: 55.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/1.299, allocations: 16.32 MB / 0.7234 GB, free: 43.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.3, allocations: 9.031 kB / 0.7234 GB, free: 43.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009119/1.309, allocations: 6.814 MB / 0.7301 GB, free: 39.72 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002081/1.311, allocations: 0.7346 MB / 0.7308 GB, free: 39.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006086/1.311, allocations: 60.16 kB / 0.7309 GB, free: 39.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/1.313, allocations: 155 kB / 0.731 GB, free: 39.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005721/1.314, allocations: 204.3 kB / 0.7312 GB, free: 39.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/1.314, allocations: 76.22 kB / 0.7313 GB, free: 39.12 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003748/1.318, allocations: 2.077 MB / 0.7333 GB, free: 38.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.318, allocations: 0 / 0.7333 GB, free: 38.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004776/1.322, allocations: 1.092 MB / 0.7344 GB, free: 38.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * 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,(6,72.2%) 23,(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.0009946/1.323, allocations: 0.5154 MB / 0.7349 GB, free: 38.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006383/1.33, allocations: 4.368 MB / 0.7392 GB, free: 36.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.33, allocations: 7.688 kB / 0.7392 GB, free: 36.06 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003984/1.334, allocations: 2.916 MB / 0.742 GB, free: 34.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004403/1.338, allocations: 0.8767 MB / 0.7429 GB, free: 34.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/1.355, allocations: 12.1 MB / 0.7547 GB, free: 25.31 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/1.357, allocations: 3.516 MB / 0.7581 GB, free: 22.66 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003055/1.36, allocations: 0.8044 MB / 0.7589 GB, free: 22.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00059/1.361, allocations: 247.6 kB / 0.7591 GB, free: 21.87 MB / 394.7 MB Notification: Performance of SimCode: time 6.92e-07/1.361, allocations: 0 / 0.7591 GB, free: 21.87 MB / 394.7 MB Notification: Performance of Templates: time 0.08355/1.445, allocations: 53.96 MB / 0.8118 GB, free: 9.496 MB / 426.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)