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.001265/0.001265, allocations: 106.4 kB / 17.74 MB, free: 5.352 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.001281/0.001281, allocations: 183.1 kB / 18.68 MB, free: 4.426 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.31/1.31, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2082, allocations: 49.44 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02092/0.2292, allocations: 20.29 MB / 421.7 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.2397, allocations: 5.907 MB / 427.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002569/0.2423, allocations: 131.5 kB / 427.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003425/0.2457, allocations: 1.397 MB / 429.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005086/0.2508, allocations: 1.992 MB / 431.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002752/0.2536, allocations: 1.223 MB / 432.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007108/0.2607, allocations: 6.125 MB / 438.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005707/0.2664, allocations: 5.43 MB / 443.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003158/0.2696, allocations: 2.854 MB / 446.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003629/0.2733, allocations: 3.394 MB / 450.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000923/0.2742, allocations: 0.7773 MB / 451 MB, free: 7.102 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001743/0.2759, allocations: 1.07 MB / 452 MB, free: 6.031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00158/0.2775, allocations: 1.936 MB / 454 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002992/0.2805, allocations: 3.361 MB / 457.3 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009272/0.2898, allocations: 10.33 MB / 467.7 MB, free: 6.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2899, allocations: 3.984 kB / 467.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2899, allocations: 0 / 467.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001389/0.29, allocations: 3.938 kB / 467.7 MB, free: 6.336 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.01336/0.3034, allocations: 6.738 MB / 474.4 MB, free: 15.51 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3034, allocations: 8.031 kB / 474.4 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004377/0.3078, allocations: 1.032 MB / 475.4 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005502/0.3133, allocations: 3.593 MB / 479 MB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000262/0.3136, allocations: 386.6 kB / 479.4 MB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007226/0.3143, allocations: 0.5047 MB / 479.9 MB, free: 9.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.3247, allocations: 6.775 MB / 486.7 MB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.3248, allocations: 15.89 kB / 486.7 MB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004585/0.3253, allocations: 208 kB / 486.9 MB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002122/0.3255, allocations: 250.1 kB / 487.2 MB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009246/0.3347, allocations: 5.755 MB / 492.9 MB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02834/0.3631, allocations: 20.9 MB / 0.5018 GB, free: 7.457 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008128/0.3712, allocations: 8.531 MB / 0.5101 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003085/0.3743, allocations: 2.101 MB / 0.5121 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0093/0.3837, allocations: 5.908 MB / 0.5179 GB, free: 5.816 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.3837, allocations: 64.5 kB / 0.518 GB, free: 5.742 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 3.407e-06/0.3837, allocations: 4 kB / 0.518 GB, free: 5.738 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.01918/0.4029, allocations: 10.45 MB / 0.5282 GB, free: 11.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.403, allocations: 77.41 kB / 0.5283 GB, free: 10.96 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003743/0.4067, allocations: 2.904 MB / 0.5311 GB, free: 8.047 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/0.4069, allocations: 61.7 kB / 0.5312 GB, free: 7.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.4084, allocations: 2.427 MB / 0.5335 GB, free: 5.535 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005762/0.409, allocations: 0.8018 MB / 0.5343 GB, free: 4.727 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007841/0.4098, allocations: 0.5179 MB / 0.5348 GB, free: 4.199 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.4099, allocations: 301.1 kB / 0.5351 GB, free: 3.902 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00205/0.412, allocations: 1.267 MB / 0.5363 GB, free: 2.633 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002639/0.4146, allocations: 2.183 MB / 0.5385 GB, free: 48 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1768/0.5914, allocations: 3.663 MB / 0.542 GB, free: 123.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.156e-05/0.5915, allocations: 9.031 kB / 0.5421 GB, free: 123.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006421/0.5979, allocations: 4.469 MB / 0.5464 GB, free: 121.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.5979, allocations: 15.81 kB / 0.5464 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.313e-05/0.598, allocations: 31.5 kB / 0.5465 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.599, allocations: 0.511 MB / 0.547 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002324/0.6014, allocations: 0.6824 MB / 0.5476 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006408/0.6078, allocations: 10.2 MB / 0.5576 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/0.6099, allocations: 172 kB / 0.5578 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001954/0.6101, allocations: 130.7 kB / 0.5579 GB, free: 112.9 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.001958/0.6121, allocations: 1.514 MB / 0.5594 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004947/0.6126, allocations: 333.1 kB / 0.5597 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005441/0.618, allocations: 3.877 MB / 0.5635 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/0.618, allocations: 11.39 kB / 0.5635 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.618, allocations: 2.562 kB / 0.5635 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.6191, allocations: 0.6691 MB / 0.5641 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004499/0.6195, allocations: 43.19 kB / 0.5642 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.6209, allocations: 145.2 kB / 0.5643 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003063/0.6212, allocations: 177.8 kB / 0.5645 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006348/0.6276, allocations: 3.672 MB / 0.5681 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005233/0.6328, allocations: 4.569 MB / 0.5725 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001434/0.6343, allocations: 1.296 MB / 0.5738 GB, free: 101.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002238/0.6365, allocations: 1.963 MB / 0.5757 GB, free: 99.8 MB / 462.1 MB Notification: Performance of Backend: time 4.21e-07/0.6365, allocations: 0 / 0.5757 GB, free: 99.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00429/0.6408, allocations: 3.146 MB / 0.5788 GB, free: 96.59 MB / 462.1 MB Notification: Performance of SimCode: time 0.0111/0.652, allocations: 9.926 MB / 0.5885 GB, free: 86.65 MB / 462.1 MB Notification: Performance of Templates: time 0.06541/0.7174, allocations: 50.76 MB / 0.638 GB, free: 36.48 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)