Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 104.8 kB / 17.74 MB, free: 5.316 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.001161/0.001161, allocations: 194.9 kB / 18.67 MB, free: 4.395 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.317/1.317, allocations: 205.1 MB / 224.6 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1769/0.1769, allocations: 37.98 MB / 309.9 MB, free: 5.949 MB / 254.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.002615/0.002615, allocations: 67.03 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09592/0.09856, allocations: 55.25 MB / 487.8 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl): time 0.009422/0.108, allocations: 7.492 MB / 495.3 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005342/0.1134, allocations: 3.225 MB / 498.5 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007969/0.1142, allocations: 31.88 kB / 498.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.1156, allocations: 397.5 kB / 498.9 MB, free: 13.14 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.00204/0.1176, allocations: 0.7971 MB / 499.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.1187, allocations: 467.8 kB / 0.4885 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002246/0.121, allocations: 1.918 MB / 0.4903 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002114/0.1231, allocations: 1.661 MB / 0.492 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.1243, allocations: 0.7866 MB / 0.4927 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.1255, allocations: 0.8136 MB / 0.4935 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003738/0.1259, allocations: 164 kB / 0.4937 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.1272, allocations: 0.7138 MB / 0.4944 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006524/0.1279, allocations: 0.569 MB / 0.4949 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.1289, allocations: 0.7661 MB / 0.4957 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002501/0.1315, allocations: 2.438 MB / 0.4981 GB, free: 2.012 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1315, allocations: 3.984 kB / 0.4981 GB, free: 2.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1315, allocations: 0 / 0.4981 GB, free: 2.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.478e-05/0.1316, allocations: 4 kB / 0.4981 GB, free: 2.004 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003918/0.1355, allocations: 1.925 MB / 0.4999 GB, free: 15.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1355, allocations: 15.83 kB / 0.5 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006934/0.1362, allocations: 191.1 kB / 0.5001 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/0.138, allocations: 0.9962 MB / 0.5011 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.1382, allocations: 191.3 kB / 0.5013 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002456/0.1385, allocations: 123.9 kB / 0.5014 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003129/0.1416, allocations: 1.825 MB / 0.5032 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.715e-05/0.1416, allocations: 11.88 kB / 0.5032 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.1418, allocations: 51.98 kB / 0.5033 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001292/0.1419, allocations: 77.97 kB / 0.5033 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002719/0.1446, allocations: 1.413 MB / 0.5047 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007547/0.1522, allocations: 6.337 MB / 0.5109 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003043/0.1553, allocations: 1.177 MB / 0.512 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.1566, allocations: 0.5946 MB / 0.5126 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.032e-05/0.1567, allocations: 8.812 kB / 0.5126 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001579/0.1583, allocations: 0.78 MB / 0.5134 GB, free: 1.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 3.637e-06/0.1583, allocations: 0 / 0.5134 GB, free: 1.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.007807/0.1661, allocations: 3.474 MB / 0.5168 GB, free: 14.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.517e-05/0.1662, allocations: 157.2 kB / 0.5169 GB, free: 14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.1672, allocations: 0.8369 MB / 0.5178 GB, free: 13.15 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.202e-05/0.1673, allocations: 57.69 kB / 0.5178 GB, free: 13.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004107/0.1677, allocations: 0.5534 MB / 0.5184 GB, free: 12.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002604/0.168, allocations: 315.7 kB / 0.5187 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003244/0.1683, allocations: 222.8 kB / 0.5189 GB, free: 11.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1685, allocations: 353.9 kB / 0.5192 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008251/0.1693, allocations: 0.5408 MB / 0.5197 GB, free: 11.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.1703, allocations: 0.8617 MB / 0.5206 GB, free: 10.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005185/0.1755, allocations: 2.691 MB / 0.5232 GB, free: 7.227 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.1755, allocations: 0 / 0.5232 GB, free: 7.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003754/0.1793, allocations: 2.076 MB / 0.5252 GB, free: 5.133 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/0.1794, allocations: 65.83 kB / 0.5253 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.1794, allocations: 12 kB / 0.5253 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.1814, allocations: 0.7988 MB / 0.5261 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006383/0.182, allocations: 187.7 kB / 0.5263 GB, free: 4.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.1842, allocations: 1.862 MB / 0.5281 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007873/0.185, allocations: 83.81 kB / 0.5282 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.1851, allocations: 79.89 kB / 0.5282 GB, free: 2.004 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001204/0.1863, allocations: 0.885 MB / 0.5291 GB, free: 1.117 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009653/0.1873, allocations: 0.8537 MB / 0.5299 GB, free: 124 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1973/0.3846, allocations: 2.653 MB / 0.5325 GB, free: 49.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.055e-06/0.3847, allocations: 2.219 kB / 0.5325 GB, free: 49.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.003609/0.3883, allocations: 2.002 MB / 0.5345 GB, free: 49.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.805e-05/0.3884, allocations: 67.95 kB / 0.5345 GB, free: 49.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.3884, allocations: 9.812 kB / 0.5346 GB, free: 49.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001885/0.3903, allocations: 0.7681 MB / 0.5353 GB, free: 49.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006161/0.3909, allocations: 181.1 kB / 0.5355 GB, free: 49.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/0.3928, allocations: 1.832 MB / 0.5373 GB, free: 48.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008182/0.3936, allocations: 76.86 kB / 0.5373 GB, free: 48.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.3938, allocations: 83.08 kB / 0.5374 GB, free: 48.08 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$PRE.sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.t0[3],$PRE.sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of prepare postOptimizeDAE: time 0.0003043/0.3941, allocations: 282.5 kB / 0.5377 GB, free: 47.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.3943, allocations: 106.2 kB / 0.5378 GB, free: 47.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00305/0.3973, allocations: 1.279 MB / 0.539 GB, free: 47.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.3973, allocations: 9.109 kB / 0.5391 GB, free: 47.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3974, allocations: 0 / 0.5391 GB, free: 47.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004937/0.3979, allocations: 304.6 kB / 0.5393 GB, free: 47.22 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/0.3981, allocations: 95.94 kB / 0.5394 GB, free: 47.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007981/0.3989, allocations: 91.69 kB / 0.5395 GB, free: 47.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.3991, allocations: 57.84 kB / 0.5396 GB, free: 47.16 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00362/0.4027, allocations: 1.56 MB / 0.5411 GB, free: 46.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003974/0.4067, allocations: 2.269 MB / 0.5433 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001182/0.4079, allocations: 0.5856 MB / 0.5439 GB, free: 45.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007058/0.4086, allocations: 0.5688 MB / 0.5444 GB, free: 45.09 MB / 414.1 MB Notification: Performance of Backend: time 2.5e-07/0.4086, allocations: 0 / 0.5444 GB, free: 45.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003971/0.4126, allocations: 2.277 MB / 0.5467 GB, free: 44.09 MB / 414.1 MB Notification: Performance of SimCode: time 0.003542/0.4161, allocations: 2.847 MB / 0.5494 GB, free: 42.43 MB / 414.1 MB Notification: Performance of Templates: time 0.02813/0.4443, allocations: 25.15 MB / 0.574 GB, free: 22.07 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)