Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001043/0.001043, allocations: 181 kB / 17.2 MB, free: 5.914 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.517/1.517, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3046/0.3046, allocations: 38.06 MB / 309.7 MB, free: 8.879 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.0005787/0.0005788, allocations: 16 kB / 376.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1384, allocations: 56.33 MB / 432.8 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.009684/0.1481, allocations: 7.219 MB / 440 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00895/0.1571, allocations: 4.796 MB / 444.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001886/0.1591, allocations: 63.62 kB / 444.9 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005801/0.1649, allocations: 1.758 MB / 446.7 MB, free: 8.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002134/0.1671, allocations: 434.6 kB / 447.1 MB, free: 8.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.1687, allocations: 415.2 kB / 447.5 MB, free: 8.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002298/0.1711, allocations: 0.9057 MB / 448.4 MB, free: 7.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002527/0.1736, allocations: 1.031 MB / 449.4 MB, free: 6.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.1751, allocations: 490.2 kB / 449.9 MB, free: 5.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001301/0.1764, allocations: 0.5292 MB / 450.4 MB, free: 5.027 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003605/0.1768, allocations: 48 kB / 450.5 MB, free: 4.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005449/0.1774, allocations: 67.92 kB / 450.5 MB, free: 4.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006054/0.178, allocations: 339 kB / 450.9 MB, free: 4.582 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005875/0.1786, allocations: 229.1 kB / 451.1 MB, free: 4.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001373/0.1799, allocations: 1.258 MB / 452.4 MB, free: 3.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.18, allocations: 0 / 452.4 MB, free: 3.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.18, allocations: 0 / 452.4 MB, free: 3.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.18, allocations: 4 kB / 452.4 MB, free: 3.086 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.0029/0.1829, allocations: 1.246 MB / 453.6 MB, free: 1.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.183, allocations: 12.03 kB / 453.6 MB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004388/0.1834, allocations: 134.4 kB / 453.7 MB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.1853, allocations: 0.8558 MB / 454.6 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.29e-05/0.1854, allocations: 69.94 kB / 454.7 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.1856, allocations: 91.89 kB / 454.8 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.281/0.4666, allocations: 1.212 MB / 456 MB, free: 51.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.824e-05/0.4667, allocations: 6.812 kB / 456 MB, free: 51.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.4668, allocations: 37.09 kB / 456 MB, free: 51.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000272/0.4671, allocations: 76.5 kB / 456.1 MB, free: 51.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.4687, allocations: 1.009 MB / 457.1 MB, free: 51.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006049/0.4747, allocations: 4.435 MB / 461.5 MB, free: 49.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.4762, allocations: 0.8929 MB / 462.4 MB, free: 49.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.86e-05/0.4763, allocations: 11.86 kB / 462.4 MB, free: 49.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.047e-05/0.4764, allocations: 42.94 kB / 462.5 MB, free: 49.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 5.25e-06/0.4764, allocations: 0 / 462.5 MB, free: 49.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.006514/0.4829, allocations: 3.521 MB / 466 MB, free: 47.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.476e-05/0.483, allocations: 135.5 kB / 466.1 MB, free: 47.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007989/0.4838, allocations: 0.6893 MB / 466.8 MB, free: 46.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.501e-05/0.4839, allocations: 36.98 kB / 466.9 MB, free: 46.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000302/0.4842, allocations: 485 kB / 467.3 MB, free: 46.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.4844, allocations: 252.9 kB / 467.6 MB, free: 46.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.237e-05/0.4845, allocations: 15.12 kB / 467.6 MB, free: 46.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.4846, allocations: 341.6 kB / 467.9 MB, free: 46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/0.4852, allocations: 378.1 kB / 468.3 MB, free: 45.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007341/0.4859, allocations: 0.5867 MB / 468.9 MB, free: 45.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00582/0.4918, allocations: 1.517 MB / 470.4 MB, free: 45.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.4918, allocations: 3.125 kB / 470.4 MB, free: 45.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005387/0.4972, allocations: 2.15 MB / 472.6 MB, free: 44.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007022/0.4979, allocations: 2.534 MB / 475.1 MB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.4979, allocations: 6.375 kB / 475.1 MB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004502/0.5024, allocations: 1.07 MB / 476.2 MB, free: 41.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.503, allocations: 122.5 kB / 476.3 MB, free: 41.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/0.517, allocations: 10.99 MB / 487.3 MB, free: 34.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000808/0.5179, allocations: 40.95 kB / 487.3 MB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-05/0.518, allocations: 39.59 kB / 487.4 MB, free: 34.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.247e-06/0.518, allocations: 7.281 kB / 487.4 MB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004689/0.5227, allocations: 1.938 MB / 489.3 MB, free: 33.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.5227, allocations: 10.53 kB / 489.3 MB, free: 33.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004082/0.5268, allocations: 1.023 MB / 490.3 MB, free: 33.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.5273, allocations: 126.4 kB / 490.5 MB, free: 33.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.541, allocations: 10.7 MB / 0.4894 GB, free: 26.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007912/0.5419, allocations: 40.19 kB / 0.4895 GB, free: 26.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.189e-05/0.542, allocations: 39.16 kB / 0.4895 GB, free: 26.67 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.000726/0.5427, allocations: 407.4 kB / 0.4899 GB, free: 26.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.5429, allocations: 89.5 kB / 0.49 GB, free: 26.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00219/0.5451, allocations: 1.355 MB / 0.4913 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.5451, allocations: 10.38 kB / 0.4913 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5451, allocations: 1.344 kB / 0.4913 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.5451, allocations: 9.844 kB / 0.4913 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004088/0.5492, allocations: 2.506 MB / 0.4938 GB, free: 24.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.5493, allocations: 1 kB / 0.4938 GB, free: 24.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000822/0.5501, allocations: 160.2 kB / 0.4939 GB, free: 24.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000512/0.5506, allocations: 173.2 kB / 0.4941 GB, free: 24.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.5507, allocations: 28.69 kB / 0.4941 GB, free: 24.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004075/0.5548, allocations: 6.818 MB / 0.5008 GB, free: 17.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5548, allocations: 8 kB / 0.5008 GB, free: 17.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003286/0.5581, allocations: 2.019 MB / 0.5027 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005014/0.5586, allocations: 238.3 kB / 0.503 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.5588, allocations: 20.23 kB / 0.503 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006077/0.5594, allocations: 32.39 kB / 0.503 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.5596, allocations: 59.75 kB / 0.5031 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.758e-05/0.5597, allocations: 31.88 kB / 0.5031 GB, free: 15.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001168/0.5609, allocations: 477.6 kB / 0.5036 GB, free: 15.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5609, allocations: 0 / 0.5036 GB, free: 15.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002706/0.5636, allocations: 462.5 kB / 0.504 GB, free: 15.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002779/0.5639, allocations: 120.3 kB / 0.5041 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006142/0.5701, allocations: 2.836 MB / 0.5069 GB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.5701, allocations: 256 / 0.5069 GB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.5717, allocations: 1.048 MB / 0.5079 GB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.5729, allocations: 214.5 kB / 0.5081 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005007/0.5779, allocations: 2.937 MB / 0.511 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.579, allocations: 1.203 MB / 0.5122 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000918/0.5799, allocations: 200.4 kB / 0.5123 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.5802, allocations: 67.81 kB / 0.5124 GB, free: 10.66 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5802, allocations: 0 / 0.5124 GB, free: 10.66 MB / 382.1 MB Notification: Performance of Templates: time 0.04144/0.6216, allocations: 22.89 MB / 0.5348 GB, free: 7.715 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: