Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00765/0.00765, allocations: 101.4 kB / 15.73 MB, free: 6.012 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.001596/0.001596, allocations: 193.5 kB / 16.67 MB, free: 5.934 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.548/1.548, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001352/0.001352, allocations: 46.66 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02163/0.1238, allocations: 20.2 MB / 393.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01285/0.1367, allocations: 5.947 MB / 399.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004532/0.1413, allocations: 119.4 kB / 399.5 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004906/0.1463, allocations: 1.397 MB / 400.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008018/0.1543, allocations: 1.984 MB / 402.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00416/0.1585, allocations: 1.245 MB / 404.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.1691, allocations: 6.122 MB / 410.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01014/0.1793, allocations: 5.351 MB / 415.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007627/0.1869, allocations: 2.854 MB / 418.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007153/0.1941, allocations: 3.382 MB / 421.8 MB, free: 428 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002896/0.1971, allocations: 0.7851 MB / 422.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.2011, allocations: 1.074 MB / 423.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003227/0.2044, allocations: 1.94 MB / 425.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00649/0.2109, allocations: 3.353 MB / 429 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.2234, allocations: 10.29 MB / 439.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2234, allocations: 0 / 439.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2234, allocations: 0 / 439.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000319/0.2238, allocations: 0 / 439.2 MB, free: 14.92 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01949/0.2433, allocations: 6.585 MB / 445.8 MB, free: 8.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.2433, allocations: 8.031 kB / 445.8 MB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005837/0.2492, allocations: 1.009 MB / 446.9 MB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008426/0.2576, allocations: 3.338 MB / 450.2 MB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000413/0.2581, allocations: 390.6 kB / 450.6 MB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001728/0.2598, allocations: 0.5038 MB / 451.1 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2083/0.4681, allocations: 6.765 MB / 457.8 MB, free: 62.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/0.4683, allocations: 13.77 kB / 457.9 MB, free: 62.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004409/0.4688, allocations: 205.5 kB / 458.1 MB, free: 62.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002924/0.4691, allocations: 247.8 kB / 458.3 MB, free: 62.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01236/0.4814, allocations: 5.737 MB / 464 MB, free: 60.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03518/0.5167, allocations: 20.83 MB / 484.9 MB, free: 46.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006531/0.5232, allocations: 8.554 MB / 493.4 MB, free: 38.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002803/0.5261, allocations: 2.087 MB / 495.5 MB, free: 37.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.5362, allocations: 5.916 MB / 0.4897 GB, free: 31.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.673e-05/0.5363, allocations: 52.56 kB / 0.4897 GB, free: 31.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 4.329e-06/0.5363, allocations: 3.969 kB / 0.4897 GB, free: 31.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.01819/0.5545, allocations: 10.28 MB / 0.4998 GB, free: 20.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.5546, allocations: 77.41 kB / 0.4998 GB, free: 20.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004852/0.5595, allocations: 2.904 MB / 0.5027 GB, free: 17.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.5596, allocations: 65.55 kB / 0.5027 GB, free: 17.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.5608, allocations: 2.352 MB / 0.505 GB, free: 15.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004689/0.5613, allocations: 0.7652 MB / 0.5058 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006848/0.5619, allocations: 0.5177 MB / 0.5063 GB, free: 13.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.425e-05/0.562, allocations: 301.1 kB / 0.5066 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/0.5637, allocations: 1.271 MB / 0.5078 GB, free: 12.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001946/0.5656, allocations: 2.178 MB / 0.5099 GB, free: 9.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004059/0.5697, allocations: 3.669 MB / 0.5135 GB, free: 5.641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.131e-05/0.5698, allocations: 11.94 kB / 0.5135 GB, free: 5.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007526/0.5773, allocations: 4.442 MB / 0.5179 GB, free: 1.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/0.5774, allocations: 16 kB / 0.5179 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-05/0.5774, allocations: 28 kB / 0.5179 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.5785, allocations: 0.5143 MB / 0.5184 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/0.5807, allocations: 0.6903 MB / 0.5191 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00909/0.5898, allocations: 10.2 MB / 0.529 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00255/0.5924, allocations: 171.8 kB / 0.5292 GB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003061/0.5927, allocations: 131.9 kB / 0.5293 GB, free: 4.664 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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,11,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.00374/0.5965, allocations: 1.512 MB / 0.5308 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/0.5976, allocations: 324 kB / 0.5311 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007436/0.6051, allocations: 3.871 MB / 0.5349 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.346e-05/0.6051, allocations: 20 kB / 0.5349 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.685e-05/0.6052, allocations: 11.94 kB / 0.5349 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.13e-05/0.6052, allocations: 11.95 kB / 0.5349 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0167/0.6219, allocations: 8.474 MB / 0.5432 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.622, allocations: 4 kB / 0.5432 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/0.6237, allocations: 383.4 kB / 0.5436 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.6257, allocations: 0.7188 MB / 0.5443 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002408/0.626, allocations: 63.97 kB / 0.5444 GB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01518/0.6412, allocations: 16.62 MB / 0.5606 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.6412, allocations: 7.938 kB / 0.5606 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009381/0.6506, allocations: 5.56 MB / 0.566 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002146/0.6528, allocations: 0.6493 MB / 0.5667 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/0.6539, allocations: 56.17 kB / 0.5667 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002089/0.656, allocations: 135.9 kB / 0.5668 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004719/0.6565, allocations: 173.6 kB / 0.567 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/0.6567, allocations: 63.98 kB / 0.5671 GB, free: 12.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004611/0.6613, allocations: 1.963 MB / 0.569 GB, free: 10.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6613, allocations: 0 / 0.569 GB, free: 10.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004252/0.6656, allocations: 0.9323 MB / 0.5699 GB, free: 9.609 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006907/0.6663, allocations: 253.6 kB / 0.5701 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007265/0.6735, allocations: 3.966 MB / 0.574 GB, free: 5.289 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.6736, allocations: 0 / 0.574 GB, free: 5.289 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00464/0.6782, allocations: 2.657 MB / 0.5766 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00444/0.6827, allocations: 0.8392 MB / 0.5774 GB, free: 1.699 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0202/0.7029, allocations: 9.477 MB / 0.5867 GB, free: 8.172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003512/0.7065, allocations: 3.293 MB / 0.5899 GB, free: 4.844 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002468/0.7089, allocations: 0.7578 MB / 0.5906 GB, free: 4.082 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000604/0.7096, allocations: 227.4 kB / 0.5908 GB, free: 3.859 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.7096, allocations: 0 / 0.5908 GB, free: 3.859 MB / 462.1 MB Notification: Performance of Templates: time 0.2744/0.9839, allocations: 45.35 MB / 0.6351 GB, free: 156.1 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)