Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_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.001045/0.001045, allocations: 112.3 kB / 18.41 MB, free: 4.691 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.0009972/0.0009972, allocations: 182.2 kB / 19.33 MB, free: 3.777 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.251/1.251, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.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.001151/0.001151, allocations: 51.94 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06842/0.06958, allocations: 46.63 MB / 375.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.1589/0.2285, allocations: 20.21 MB / 396.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.2394, allocations: 5.94 MB / 402 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003219/0.2427, allocations: 117.5 kB / 402.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003764/0.2465, allocations: 1.395 MB / 403.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005935/0.2525, allocations: 1.989 MB / 405.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003232/0.2557, allocations: 1.246 MB / 406.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00739/0.2631, allocations: 6.119 MB / 412.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006849/0.27, allocations: 5.359 MB / 418.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003839/0.2738, allocations: 2.848 MB / 421.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005108/0.279, allocations: 3.386 MB / 424.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001548/0.2805, allocations: 0.7812 MB / 425.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002742/0.2833, allocations: 1.074 MB / 426.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002123/0.2854, allocations: 1.94 MB / 428.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003775/0.2892, allocations: 3.349 MB / 431.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00871/0.2979, allocations: 10.3 MB / 441.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2979, allocations: 0 / 441.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2979, allocations: 4 kB / 441.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001172/0.2981, allocations: 0 / 441.9 MB, free: 13.36 MB / 366.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.01361/0.3117, allocations: 6.586 MB / 448.5 MB, free: 6.695 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3117, allocations: 8.031 kB / 448.5 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004516/0.3162, allocations: 1.005 MB / 449.5 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005737/0.322, allocations: 3.345 MB / 452.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.3223, allocations: 386.6 kB / 453.2 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007078/0.323, allocations: 0.5002 MB / 453.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/0.3337, allocations: 6.775 MB / 460.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.524e-05/0.3338, allocations: 7.906 kB / 460.5 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004837/0.3343, allocations: 216 kB / 460.7 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000216/0.3345, allocations: 246.2 kB / 461 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009082/0.3436, allocations: 5.74 MB / 466.7 MB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02911/0.3727, allocations: 20.82 MB / 487.5 MB, free: 15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008082/0.3808, allocations: 8.55 MB / 496.1 MB, free: 5.496 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003142/0.384, allocations: 2.085 MB / 498.2 MB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.3941, allocations: 5.919 MB / 0.4923 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.3941, allocations: 60.5 kB / 0.4923 GB, free: 13.28 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 4.339e-06/0.3942, allocations: 0 / 0.4923 GB, free: 13.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.01953/0.4137, allocations: 10.27 MB / 0.5024 GB, free: 2.777 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.4137, allocations: 81.34 kB / 0.5024 GB, free: 2.688 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004008/0.4178, allocations: 2.904 MB / 0.5053 GB, free: 15.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.4179, allocations: 65.7 kB / 0.5053 GB, free: 15.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001558/0.4195, allocations: 2.357 MB / 0.5076 GB, free: 13.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000577/0.4201, allocations: 0.7664 MB / 0.5084 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007804/0.4209, allocations: 0.5138 MB / 0.5089 GB, free: 12.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.583e-05/0.421, allocations: 305.1 kB / 0.5092 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002048/0.423, allocations: 1.271 MB / 0.5104 GB, free: 10.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002642/0.4257, allocations: 2.175 MB / 0.5125 GB, free: 7.867 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004895/0.4306, allocations: 3.672 MB / 0.5161 GB, free: 3.797 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.518e-05/0.4306, allocations: 8 kB / 0.5161 GB, free: 3.789 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007004/0.4376, allocations: 4.447 MB / 0.5205 GB, free: 15.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.4376, allocations: 20 kB / 0.5205 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.913e-05/0.4377, allocations: 28 kB / 0.5205 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.4388, allocations: 0.5095 MB / 0.521 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00254/0.4414, allocations: 0.6903 MB / 0.5217 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008768/0.4502, allocations: 10.19 MB / 0.5316 GB, free: 3.113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/0.4522, allocations: 171.8 kB / 0.5318 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.4524, allocations: 135.9 kB / 0.5319 GB, free: 2.812 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.002219/0.4547, allocations: 1.52 MB / 0.5334 GB, free: 1.281 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005084/0.4552, allocations: 320.1 kB / 0.5337 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006411/0.4616, allocations: 3.875 MB / 0.5375 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.438e-05/0.4616, allocations: 11.95 kB / 0.5375 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4616, allocations: 3.938 kB / 0.5375 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.4629, allocations: 0.6493 MB / 0.5382 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004762/0.4634, allocations: 48 kB / 0.5382 GB, free: 12.26 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/0.4649, allocations: 147.8 kB / 0.5384 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/0.4652, allocations: 165.7 kB / 0.5385 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007585/0.4728, allocations: 3.658 MB / 0.5421 GB, free: 8.258 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006607/0.4795, allocations: 4.554 MB / 0.5465 GB, free: 3.688 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001846/0.4813, allocations: 1.296 MB / 0.5478 GB, free: 2.391 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002723/0.484, allocations: 1.967 MB / 0.5497 GB, free: 436 kB / 478.1 MB Notification: Performance of Backend: time 3.21e-07/0.4841, allocations: 4 kB / 0.5497 GB, free: 432 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1477/0.6318, allocations: 3.124 MB / 0.5528 GB, free: 155.6 MB / 478.1 MB Notification: Performance of SimCode: time 0.01583/0.6477, allocations: 9.752 MB / 0.5623 GB, free: 151.7 MB / 478.1 MB Notification: Performance of Templates: time 0.06866/0.7163, allocations: 50.75 MB / 0.6119 GB, free: 116.2 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)