Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 116.7 kB / 17.75 MB, free: 5.219 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.001813/0.001813, allocations: 181.4 kB / 18.67 MB, free: 4.301 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.336/1.336, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 51.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2147, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02232/0.2371, allocations: 21.74 MB / 423.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.2493, allocations: 6.398 MB / 429.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003363/0.2527, allocations: 143.4 kB / 429.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004358/0.257, allocations: 1.545 MB / 431.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00646/0.2635, allocations: 2.151 MB / 433.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003298/0.2669, allocations: 1.289 MB / 434.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007996/0.2749, allocations: 6.523 MB / 441.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00733/0.2822, allocations: 5.583 MB / 446.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003987/0.2862, allocations: 3.014 MB / 449.8 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004691/0.2909, allocations: 3.573 MB / 453.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00119/0.2921, allocations: 0.8164 MB / 454.2 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.2942, allocations: 1.093 MB / 455.3 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001724/0.2959, allocations: 2.022 MB / 457.3 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004328/0.3002, allocations: 3.543 MB / 460.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01032/0.3106, allocations: 10.83 MB / 471.7 MB, free: 2.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3106, allocations: 0 / 471.7 MB, free: 2.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3106, allocations: 0 / 471.7 MB, free: 2.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001668/0.3108, allocations: 0 / 471.7 MB, free: 2.281 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01481/0.3256, allocations: 7.08 MB / 478.8 MB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.3256, allocations: 8.031 kB / 478.8 MB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004751/0.3304, allocations: 1.098 MB / 479.9 MB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00633/0.3367, allocations: 3.779 MB / 483.7 MB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002804/0.337, allocations: 398.5 kB / 484 MB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007887/0.3378, allocations: 0.5311 MB / 484.6 MB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/0.3496, allocations: 7.056 MB / 491.6 MB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000125/0.3498, allocations: 15.95 kB / 491.6 MB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004861/0.3503, allocations: 216 kB / 491.9 MB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000243/0.3505, allocations: 266.6 kB / 492.1 MB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01041/0.3609, allocations: 5.948 MB / 498.1 MB, free: 7.652 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03499/0.396, allocations: 22.22 MB / 0.5081 GB, free: 0.875 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01098/0.407, allocations: 8.302 MB / 0.5162 GB, free: 7.688 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003543/0.4105, allocations: 2.159 MB / 0.5183 GB, free: 5.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01128/0.4218, allocations: 6.177 MB / 0.5243 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.073e-05/0.4219, allocations: 56.56 kB / 0.5244 GB, free: 15.14 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 3.637e-06/0.4219, allocations: 0 / 0.5244 GB, free: 15.14 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.02259/0.4445, allocations: 11.11 MB / 0.5352 GB, free: 3.809 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.4446, allocations: 77.41 kB / 0.5353 GB, free: 3.723 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005241/0.4498, allocations: 3.16 MB / 0.5384 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001823/0.45, allocations: 61.7 kB / 0.5385 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1791/0.6292, allocations: 2.567 MB / 0.541 GB, free: 126.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000823/0.6301, allocations: 0.8703 MB / 0.5418 GB, free: 126 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009498/0.631, allocations: 0.562 MB / 0.5424 GB, free: 125.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.512e-05/0.6311, allocations: 303.4 kB / 0.5427 GB, free: 125.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/0.6333, allocations: 1.339 MB / 0.544 GB, free: 124.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002115/0.6354, allocations: 2.339 MB / 0.5462 GB, free: 123.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00412/0.6396, allocations: 3.919 MB / 0.5501 GB, free: 120.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-05/0.6396, allocations: 15.88 kB / 0.5501 GB, free: 120.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006978/0.6466, allocations: 4.717 MB / 0.5547 GB, free: 118.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.6466, allocations: 19.09 kB / 0.5547 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-05/0.6467, allocations: 31.34 kB / 0.5547 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.6477, allocations: 0.5291 MB / 0.5553 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002503/0.6503, allocations: 0.7402 MB / 0.556 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006491/0.6568, allocations: 10.28 MB / 0.566 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/0.6593, allocations: 183.1 kB / 0.5662 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/0.6596, allocations: 144.2 kB / 0.5663 GB, free: 109.6 MB / 462.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.002185/0.6618, allocations: 1.568 MB / 0.5679 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005285/0.6623, allocations: 369.6 kB / 0.5682 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005909/0.6682, allocations: 4.067 MB / 0.5722 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.6683, allocations: 11.95 kB / 0.5722 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.6683, allocations: 0 / 0.5722 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.6695, allocations: 0.7038 MB / 0.5729 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004444/0.6699, allocations: 55.92 kB / 0.5729 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/0.6714, allocations: 151.8 kB / 0.5731 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.6717, allocations: 177.7 kB / 0.5733 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006662/0.6784, allocations: 3.817 MB / 0.577 GB, free: 99.77 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005917/0.6843, allocations: 4.793 MB / 0.5817 GB, free: 94.95 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001586/0.6859, allocations: 1.366 MB / 0.583 GB, free: 93.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002545/0.6885, allocations: 2.123 MB / 0.5851 GB, free: 91.47 MB / 462.1 MB Notification: Performance of Backend: time 3.41e-07/0.6885, allocations: 0 / 0.5851 GB, free: 91.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00509/0.6936, allocations: 3.281 MB / 0.5883 GB, free: 88.12 MB / 462.1 MB Notification: Performance of SimCode: time 0.01247/0.7061, allocations: 10.47 MB / 0.5985 GB, free: 77.64 MB / 462.1 MB Notification: Performance of Templates: time 0.07535/0.7815, allocations: 54.99 MB / 0.6522 GB, free: 23.28 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1)