Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 110.5 kB / 17.75 MB, free: 5.309 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.0009528/0.0009528, allocations: 179 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009987/0.0009987, allocations: 43.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2079, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01958/0.2275, allocations: 20.28 MB / 421.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.2385, allocations: 5.907 MB / 427.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.2413, allocations: 131.5 kB / 427.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003571/0.2449, allocations: 1.409 MB / 429.2 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005468/0.2504, allocations: 1.992 MB / 431.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002964/0.2534, allocations: 1.224 MB / 432.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00682/0.2603, allocations: 6.125 MB / 438.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007018/0.2673, allocations: 5.43 MB / 443.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00392/0.2712, allocations: 2.854 MB / 446.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004887/0.2761, allocations: 3.394 MB / 450.2 MB, free: 7.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.2777, allocations: 0.7773 MB / 451 MB, free: 7.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002699/0.2805, allocations: 1.07 MB / 452 MB, free: 5.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00227/0.2827, allocations: 1.94 MB / 454 MB, free: 4.047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003748/0.2865, allocations: 3.357 MB / 457.3 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008725/0.2952, allocations: 10.31 MB / 467.6 MB, free: 6.332 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2953, allocations: 0 / 467.6 MB, free: 6.332 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2953, allocations: 0 / 467.6 MB, free: 6.332 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001606/0.2954, allocations: 4 kB / 467.6 MB, free: 6.328 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.01437/0.3098, allocations: 6.585 MB / 474.2 MB, free: 15.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3099, allocations: 8.031 kB / 474.2 MB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004927/0.3148, allocations: 1.005 MB / 475.2 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006386/0.3212, allocations: 3.571 MB / 478.8 MB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.3215, allocations: 386.6 kB / 479.2 MB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007337/0.3222, allocations: 0.5039 MB / 479.7 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0112/0.3334, allocations: 6.775 MB / 486.5 MB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.3335, allocations: 11.84 kB / 486.5 MB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004884/0.334, allocations: 215.9 kB / 486.7 MB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002134/0.3343, allocations: 246.2 kB / 486.9 MB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00948/0.3437, allocations: 5.752 MB / 492.7 MB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03123/0.375, allocations: 20.82 MB / 0.5015 GB, free: 7.727 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008148/0.3832, allocations: 8.552 MB / 0.5098 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003199/0.3864, allocations: 2.093 MB / 0.5119 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01007/0.3965, allocations: 5.919 MB / 0.5176 GB, free: 6.062 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.3965, allocations: 56.56 kB / 0.5177 GB, free: 5.996 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 2.946e-06/0.3966, allocations: 0 / 0.5177 GB, free: 5.996 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.02012/0.4167, allocations: 10.38 MB / 0.5278 GB, free: 11.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.4167, allocations: 77.41 kB / 0.5279 GB, free: 11.28 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004226/0.421, allocations: 2.892 MB / 0.5307 GB, free: 8.375 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001575/0.4211, allocations: 65.69 kB / 0.5308 GB, free: 8.305 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.4226, allocations: 2.361 MB / 0.5331 GB, free: 5.918 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005689/0.4232, allocations: 0.7625 MB / 0.5338 GB, free: 5.145 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007811/0.424, allocations: 0.5177 MB / 0.5343 GB, free: 4.617 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.038e-05/0.4241, allocations: 313.1 kB / 0.5346 GB, free: 4.309 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/0.4262, allocations: 1.267 MB / 0.5359 GB, free: 3.039 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002609/0.4288, allocations: 2.175 MB / 0.538 GB, free: 472 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1733/0.6022, allocations: 3.661 MB / 0.5416 GB, free: 125.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-05/0.6022, allocations: 9.172 kB / 0.5416 GB, free: 125.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005891/0.6081, allocations: 4.449 MB / 0.5459 GB, free: 123.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.6081, allocations: 19.72 kB / 0.546 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.6082, allocations: 27.69 kB / 0.546 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.6092, allocations: 0.5126 MB / 0.5465 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/0.6115, allocations: 0.6848 MB / 0.5472 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00626/0.6178, allocations: 10.18 MB / 0.5571 GB, free: 114.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.6197, allocations: 171.4 kB / 0.5573 GB, free: 114.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.6199, allocations: 125.9 kB / 0.5574 GB, free: 114.6 MB / 462.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.001809/0.6217, allocations: 1.524 MB / 0.5589 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003684/0.6221, allocations: 313.9 kB / 0.5592 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005201/0.6273, allocations: 3.869 MB / 0.5629 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.6273, allocations: 15.05 kB / 0.563 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.6273, allocations: 4 kB / 0.563 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.6283, allocations: 0.646 MB / 0.5636 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003955/0.6287, allocations: 50.73 kB / 0.5636 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/0.6301, allocations: 147.5 kB / 0.5638 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.6304, allocations: 169.4 kB / 0.5639 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006366/0.6368, allocations: 3.669 MB / 0.5675 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005189/0.642, allocations: 4.553 MB / 0.572 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001455/0.6434, allocations: 1.3 MB / 0.5732 GB, free: 103.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002116/0.6456, allocations: 1.963 MB / 0.5752 GB, free: 101.7 MB / 462.1 MB Notification: Performance of Backend: time 2.61e-07/0.6456, allocations: 0 / 0.5752 GB, free: 101.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004488/0.6501, allocations: 3.148 MB / 0.5782 GB, free: 98.48 MB / 462.1 MB Notification: Performance of SimCode: time 0.01086/0.6609, allocations: 9.751 MB / 0.5878 GB, free: 88.73 MB / 462.1 MB Notification: Performance of Templates: time 0.06334/0.7243, allocations: 50.77 MB / 0.6373 GB, free: 38.56 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1)