Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 97.64 kB / 15.36 MB, free: 0.7305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 172.6 kB / 16.26 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005057/0.0005058, allocations: 16 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2646, allocations: 47.59 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02217/0.2869, allocations: 20.52 MB / 347.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.3003, allocations: 6.302 MB / 353.9 MB, free: 8.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003815/0.3041, allocations: 111.5 kB / 354 MB, free: 8.352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004243/0.3084, allocations: 1.263 MB / 355.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006607/0.315, allocations: 1.849 MB / 357.1 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003645/0.3187, allocations: 1.178 MB / 358.3 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01087/0.3295, allocations: 7.092 MB / 365.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006619/0.3362, allocations: 4.552 MB / 369.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003832/0.3401, allocations: 2.162 MB / 372.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004643/0.3447, allocations: 2.929 MB / 375 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.3458, allocations: 340 kB / 375.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.3478, allocations: 0.6324 MB / 376 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001391/0.3492, allocations: 1.456 MB / 377.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004152/0.3534, allocations: 2.916 MB / 380.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.364, allocations: 10.09 MB / 390.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3641, allocations: 0 / 390.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3641, allocations: 3.938 kB / 390.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003483/0.3645, allocations: 0 / 390.4 MB, free: 3.676 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01548/0.3799, allocations: 5.796 MB / 396.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.38, allocations: 12.03 kB / 396.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005827/0.3858, allocations: 1.071 MB / 397.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009722/0.3956, allocations: 3.445 MB / 400.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000673/0.3963, allocations: 427 kB / 401.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002082/0.3984, allocations: 0.5271 MB / 401.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02247/0.4209, allocations: 7.067 MB / 408.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002084/0.4212, allocations: 11.91 kB / 408.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009871/0.4222, allocations: 220 kB / 409 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000373/0.4225, allocations: 262.5 kB / 409.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01602/0.4386, allocations: 5.968 MB / 415.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04126/0.4799, allocations: 22.54 MB / 437.8 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008535/0.4885, allocations: 8.3 MB / 446.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003729/0.4922, allocations: 2.199 MB / 448.3 MB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.5042, allocations: 6.207 MB / 454.5 MB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.85e-05/0.5043, allocations: 60.5 kB / 454.5 MB, free: 1.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 5.461e-06/0.5043, allocations: 0 / 454.5 MB, free: 1.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.226/0.7303, allocations: 11.31 MB / 465.8 MB, free: 103.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.7304, allocations: 77.09 kB / 465.9 MB, free: 103.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004646/0.7351, allocations: 3.153 MB / 469.1 MB, free: 101.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001965/0.7353, allocations: 62.67 kB / 469.1 MB, free: 101.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001698/0.737, allocations: 2.507 MB / 471.6 MB, free: 99.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006831/0.7377, allocations: 0.8225 MB / 472.5 MB, free: 99.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/0.738, allocations: 256.8 kB / 472.7 MB, free: 99.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.338e-05/0.7381, allocations: 310.4 kB / 473 MB, free: 98.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001946/0.74, allocations: 1.347 MB / 474.4 MB, free: 98.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.7425, allocations: 2.359 MB / 476.7 MB, free: 96.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004587/0.7471, allocations: 3.948 MB / 480.7 MB, free: 93.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/0.7471, allocations: 10.88 kB / 480.7 MB, free: 93.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00704/0.7541, allocations: 4.733 MB / 485.4 MB, free: 89.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.746e-05/0.7542, allocations: 20.66 kB / 485.4 MB, free: 89.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.732e-05/0.7542, allocations: 36 kB / 485.5 MB, free: 89.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.7553, allocations: 0.5249 MB / 486 MB, free: 88.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002442/0.7578, allocations: 0.7527 MB / 486.7 MB, free: 88.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006605/0.7644, allocations: 9.436 MB / 496.2 MB, free: 78.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003256/0.7677, allocations: 203.4 kB / 496.4 MB, free: 77.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002233/0.7679, allocations: 144 kB / 496.5 MB, free: 77.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003156/0.7711, allocations: 1.567 MB / 498.1 MB, free: 76.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006952/0.7718, allocations: 343.8 kB / 498.4 MB, free: 75.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005751/0.7776, allocations: 4.091 MB / 0.4907 GB, free: 71.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.7776, allocations: 24 kB / 0.4908 GB, free: 71.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.7776, allocations: 8 kB / 0.4908 GB, free: 71.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.7776, allocations: 13.48 kB / 0.4908 GB, free: 71.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.79, allocations: 9.001 MB / 0.4996 GB, free: 62.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.7901, allocations: 4 kB / 0.4996 GB, free: 62.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/0.7917, allocations: 415.7 kB / 0.5 GB, free: 62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/0.7933, allocations: 0.7364 MB / 0.5007 GB, free: 61.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.7935, allocations: 65.17 kB / 0.5007 GB, free: 61.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.8042, allocations: 15.32 MB / 0.5157 GB, free: 44.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.8043, allocations: 7.938 kB / 0.5157 GB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008496/0.8128, allocations: 5.899 MB / 0.5215 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002025/0.8148, allocations: 0.7035 MB / 0.5222 GB, free: 38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005311/0.8154, allocations: 63.98 kB / 0.5222 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/0.817, allocations: 151.9 kB / 0.5224 GB, free: 37.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004384/0.8174, allocations: 177.6 kB / 0.5225 GB, free: 37.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.8176, allocations: 67.98 kB / 0.5226 GB, free: 37.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003149/0.8207, allocations: 2.127 MB / 0.5247 GB, free: 35.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8208, allocations: 4 kB / 0.5247 GB, free: 35.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003603/0.8244, allocations: 0.9871 MB / 0.5257 GB, free: 34.44 MB / 382.1 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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005935/0.825, allocations: 252.2 kB / 0.5259 GB, free: 34.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005744/0.8307, allocations: 4.169 MB / 0.53 GB, free: 29.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.8307, allocations: 0 / 0.53 GB, free: 29.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003605/0.8344, allocations: 2.769 MB / 0.5327 GB, free: 27.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006724/0.8411, allocations: 0.8954 MB / 0.5335 GB, free: 26.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01755/0.8587, allocations: 12.54 MB / 0.5458 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0028/0.8615, allocations: 3.404 MB / 0.5491 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002955/0.8645, allocations: 0.8073 MB / 0.5499 GB, free: 9.301 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006543/0.8652, allocations: 247.4 kB / 0.5501 GB, free: 9.062 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8652, allocations: 3.938 kB / 0.5501 GB, free: 9.059 MB / 382.1 MB Notification: Performance of Templates: time 0.0941/0.9593, allocations: 48.75 MB / 0.5977 GB, free: 8.23 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)