Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.01098/0.01098, allocations: 100.1 kB / 15.73 MB, free: 6.047 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.002046/0.002046, allocations: 187.6 kB / 16.67 MB, free: 5.977 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.491/1.491, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.002059/0.002059, allocations: 58.77 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1372, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02431/0.1615, allocations: 20.21 MB / 393.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.1747, allocations: 5.947 MB / 399.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004151/0.1789, allocations: 115.5 kB / 399.5 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004215/0.1832, allocations: 1.354 MB / 400.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006879/0.1901, allocations: 1.906 MB / 402.7 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00351/0.1936, allocations: 1.24 MB / 404 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009341/0.203, allocations: 6.122 MB / 410.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006686/0.2097, allocations: 5.347 MB / 415.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004604/0.2143, allocations: 2.85 MB / 418.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006459/0.2208, allocations: 3.39 MB / 421.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002096/0.2229, allocations: 0.7813 MB / 422.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002688/0.2256, allocations: 1.07 MB / 423.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002026/0.2277, allocations: 1.94 MB / 425.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005037/0.2327, allocations: 3.353 MB / 428.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0133/0.2461, allocations: 10.29 MB / 439.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.2461, allocations: 8 kB / 439.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2461, allocations: 4 kB / 439.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003698/0.2465, allocations: 0 / 439.1 MB, free: 15.04 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.01993/0.2665, allocations: 6.581 MB / 445.7 MB, free: 8.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.2665, allocations: 8.031 kB / 445.7 MB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004995/0.2715, allocations: 1.005 MB / 446.7 MB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008265/0.2798, allocations: 3.345 MB / 450.1 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003335/0.2802, allocations: 382.7 kB / 450.4 MB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001219/0.2814, allocations: 0.5077 MB / 450.9 MB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2095/0.4909, allocations: 6.764 MB / 457.7 MB, free: 62.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001436/0.4911, allocations: 15.89 kB / 457.7 MB, free: 62.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005312/0.4916, allocations: 207.1 kB / 457.9 MB, free: 62.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002617/0.4919, allocations: 243 kB / 458.2 MB, free: 62.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.5054, allocations: 5.748 MB / 463.9 MB, free: 60.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03233/0.5378, allocations: 20.82 MB / 484.7 MB, free: 46.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006227/0.5441, allocations: 8.554 MB / 493.3 MB, free: 38.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002704/0.5468, allocations: 2.084 MB / 495.4 MB, free: 37.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008782/0.5556, allocations: 5.928 MB / 0.4895 GB, free: 31.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.5557, allocations: 56.5 kB / 0.4896 GB, free: 31.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.286e-06/0.5557, allocations: 4 kB / 0.4896 GB, free: 31.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.01688/0.5726, allocations: 10.28 MB / 0.4996 GB, free: 20.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.5726, allocations: 73.41 kB / 0.4997 GB, free: 20.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.576, allocations: 2.9 MB / 0.5025 GB, free: 17.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000133/0.5761, allocations: 65.64 kB / 0.5026 GB, free: 17.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009999/0.5771, allocations: 2.36 MB / 0.5049 GB, free: 15.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004264/0.5776, allocations: 0.7619 MB / 0.5057 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006656/0.5782, allocations: 0.5175 MB / 0.5062 GB, free: 13.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.063e-05/0.5783, allocations: 301.1 kB / 0.5064 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/0.5799, allocations: 1.271 MB / 0.5077 GB, free: 12.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.5818, allocations: 2.182 MB / 0.5098 GB, free: 9.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003637/0.5854, allocations: 3.665 MB / 0.5134 GB, free: 5.758 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.5854, allocations: 11.94 kB / 0.5134 GB, free: 5.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005949/0.5914, allocations: 4.435 MB / 0.5177 GB, free: 1.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.5914, allocations: 19.94 kB / 0.5178 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-05/0.5915, allocations: 32 kB / 0.5178 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.5925, allocations: 0.5215 MB / 0.5183 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/0.5948, allocations: 0.6825 MB / 0.519 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009225/0.604, allocations: 10.19 MB / 0.5289 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/0.6066, allocations: 171.8 kB / 0.5291 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002216/0.6068, allocations: 135.9 kB / 0.5292 GB, free: 4.785 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.002543/0.6094, allocations: 1.516 MB / 0.5307 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005777/0.6099, allocations: 324.1 kB / 0.531 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006562/0.6165, allocations: 3.871 MB / 0.5348 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.6166, allocations: 24 kB / 0.5348 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/0.6166, allocations: 11.94 kB / 0.5348 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.606e-05/0.6166, allocations: 11.95 kB / 0.5348 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/0.631, allocations: 8.467 MB / 0.5431 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.6311, allocations: 4 kB / 0.5431 GB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.6327, allocations: 387.8 kB / 0.5435 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001874/0.6346, allocations: 0.7182 MB / 0.5442 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001819/0.6348, allocations: 63.97 kB / 0.5442 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/0.6501, allocations: 16.61 MB / 0.5605 GB, free: 3.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/0.6501, allocations: 8.094 kB / 0.5605 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008988/0.6591, allocations: 5.557 MB / 0.5659 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/0.6609, allocations: 0.6532 MB / 0.5665 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004019/0.6613, allocations: 56.19 kB / 0.5666 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.6628, allocations: 131.9 kB / 0.5667 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003897/0.6632, allocations: 177.5 kB / 0.5669 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.6634, allocations: 68.09 kB / 0.5669 GB, free: 12.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002847/0.6662, allocations: 1.96 MB / 0.5689 GB, free: 10.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6663, allocations: 4 kB / 0.5689 GB, free: 10.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003145/0.6694, allocations: 0.9322 MB / 0.5698 GB, free: 9.73 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.0005964/0.67, allocations: 249.9 kB / 0.57 GB, free: 9.477 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006102/0.6761, allocations: 3.97 MB / 0.5739 GB, free: 5.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.6762, allocations: 4.938 kB / 0.5739 GB, free: 5.406 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004193/0.6804, allocations: 2.648 MB / 0.5765 GB, free: 2.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003997/0.6844, allocations: 0.8455 MB / 0.5773 GB, free: 1.812 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/0.7, allocations: 9.473 MB / 0.5866 GB, free: 8.289 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002921/0.703, allocations: 3.297 MB / 0.5898 GB, free: 4.957 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00231/0.7053, allocations: 0.7578 MB / 0.5905 GB, free: 4.195 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000582/0.7059, allocations: 223.4 kB / 0.5907 GB, free: 3.977 MB / 462.1 MB Notification: Performance of SimCode: time 2.124e-06/0.7059, allocations: 0 / 0.5907 GB, free: 3.977 MB / 462.1 MB Notification: Performance of Templates: time 0.2616/0.9676, allocations: 46.04 MB / 0.6357 GB, free: 156.2 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)