Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0008674/0.0008674, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.006237/0.006237, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.368/1.368, 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.0004483/0.0004483, allocations: 8 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2451, allocations: 47.58 MB / 327 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02106/0.2662, allocations: 20.52 MB / 347.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01272/0.2789, allocations: 6.314 MB / 353.9 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003912/0.2829, allocations: 111.5 kB / 354 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005098/0.288, allocations: 1.259 MB / 355.2 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007439/0.2955, allocations: 1.842 MB / 357.1 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003645/0.2991, allocations: 1.182 MB / 358.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009808/0.309, allocations: 7.096 MB / 365.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006088/0.3151, allocations: 4.548 MB / 369.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003912/0.319, allocations: 2.159 MB / 372.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004493/0.3235, allocations: 2.929 MB / 375 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007315/0.3243, allocations: 340 kB / 375.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.3261, allocations: 0.6324 MB / 376 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.3274, allocations: 1.456 MB / 377.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003385/0.3308, allocations: 2.928 MB / 380.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01018/0.341, allocations: 10.08 MB / 390.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.3411, allocations: 0 / 390.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.3411, allocations: 4 kB / 390.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003115/0.3414, 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.0154/0.3568, allocations: 5.8 MB / 396.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3569, allocations: 12.03 kB / 396.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0054/0.3623, allocations: 1.067 MB / 397.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006742/0.369, allocations: 3.445 MB / 400.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003595/0.3694, allocations: 423 kB / 401.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/0.3705, allocations: 0.5232 MB / 401.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01425/0.3848, allocations: 7.071 MB / 408.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/0.385, allocations: 15.89 kB / 408.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004984/0.3855, allocations: 216 kB / 409 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002512/0.3857, allocations: 262.6 kB / 409.2 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/0.3982, allocations: 5.972 MB / 415.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03961/0.4378, allocations: 22.54 MB / 437.8 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008162/0.446, allocations: 8.308 MB / 446.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00353/0.4496, allocations: 2.199 MB / 448.3 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/0.4606, allocations: 6.207 MB / 454.5 MB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.4607, allocations: 52.56 kB / 454.5 MB, free: 1.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 5.74e-06/0.4607, allocations: 3.938 kB / 454.5 MB, free: 1.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.2053/0.6661, allocations: 11.32 MB / 465.8 MB, free: 103.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.6662, allocations: 77.19 kB / 465.9 MB, free: 103.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00453/0.6707, allocations: 3.156 MB / 469.1 MB, free: 101.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002122/0.6709, allocations: 65.3 kB / 469.1 MB, free: 101.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001615/0.6725, allocations: 2.506 MB / 471.6 MB, free: 99.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006284/0.6732, allocations: 0.8233 MB / 472.5 MB, free: 99.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003104/0.6735, allocations: 256.6 kB / 472.7 MB, free: 99.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.002e-05/0.6736, allocations: 306.5 kB / 473 MB, free: 98.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/0.6756, allocations: 1.348 MB / 474.4 MB, free: 98.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/0.6779, allocations: 2.358 MB / 476.7 MB, free: 96.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004362/0.6822, allocations: 3.95 MB / 480.7 MB, free: 93.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/0.6823, allocations: 7.844 kB / 480.7 MB, free: 93.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007504/0.6898, allocations: 4.741 MB / 485.4 MB, free: 89.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.6898, allocations: 20.03 kB / 485.4 MB, free: 89.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.388e-05/0.6899, allocations: 32 kB / 485.5 MB, free: 89.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.691, allocations: 0.521 MB / 486 MB, free: 88.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002389/0.6934, allocations: 0.7527 MB / 486.7 MB, free: 88.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006362/0.6997, allocations: 9.434 MB / 496.2 MB, free: 78.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/0.7029, allocations: 195.6 kB / 496.4 MB, free: 77.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002523/0.7032, allocations: 144 kB / 496.5 MB, free: 77.71 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.003204/0.7064, allocations: 1.571 MB / 498.1 MB, free: 76.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008555/0.7073, allocations: 343.8 kB / 498.4 MB, free: 75.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006045/0.7133, allocations: 4.086 MB / 0.4907 GB, free: 71.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.7134, allocations: 24.19 kB / 0.4907 GB, free: 71.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.7134, allocations: 11.98 kB / 0.4908 GB, free: 71.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/0.7134, allocations: 13.48 kB / 0.4908 GB, free: 71.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/0.7276, allocations: 9.002 MB / 0.4996 GB, free: 62.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.7277, allocations: 4 kB / 0.4996 GB, free: 62.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/0.7293, allocations: 419.9 kB / 0.5 GB, free: 62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.731, allocations: 0.7327 MB / 0.5007 GB, free: 61.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.7312, allocations: 69.17 kB / 0.5007 GB, free: 61.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/0.7425, allocations: 15.32 MB / 0.5157 GB, free: 44.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.7426, allocations: 16.09 kB / 0.5157 GB, free: 44.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008563/0.7512, allocations: 5.898 MB / 0.5215 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/0.7533, allocations: 0.6998 MB / 0.5222 GB, free: 38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005069/0.7539, allocations: 55.98 kB / 0.5222 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/0.7555, allocations: 151.9 kB / 0.5224 GB, free: 37.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004601/0.756, allocations: 185.6 kB / 0.5225 GB, free: 37.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.7561, allocations: 71.98 kB / 0.5226 GB, free: 37.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002991/0.7591, allocations: 2.123 MB / 0.5247 GB, free: 35.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7591, allocations: 0 / 0.5247 GB, free: 35.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003766/0.7629, allocations: 0.991 MB / 0.5257 GB, free: 34.45 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.0006284/0.7636, allocations: 254.4 kB / 0.5259 GB, free: 34.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005746/0.7693, allocations: 4.164 MB / 0.53 GB, free: 29.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/0.7694, allocations: 4 kB / 0.53 GB, free: 29.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00369/0.773, allocations: 2.765 MB / 0.5327 GB, free: 27.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008176/0.7812, allocations: 0.8958 MB / 0.5335 GB, free: 26.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02019/0.8015, allocations: 12.54 MB / 0.5458 GB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002978/0.8045, allocations: 3.4 MB / 0.5491 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003058/0.8076, allocations: 0.8151 MB / 0.5499 GB, free: 9.305 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006391/0.8082, allocations: 243.4 kB / 0.5501 GB, free: 9.07 MB / 382.1 MB Notification: Performance of SimCode: time 2.224e-06/0.8082, allocations: 0 / 0.5501 GB, free: 9.07 MB / 382.1 MB Notification: Performance of Templates: time 0.1057/0.914, allocations: 48.75 MB / 0.5977 GB, free: 8.246 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)