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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) 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(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.001075/0.001075, allocations: 96.88 kB / 16.5 MB, free: 6.641 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.001201/0.001201, allocations: 193.3 kB / 17.42 MB, free: 6.066 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.489/1.489, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.178/0.178, allocations: 38.02 MB / 329.3 MB, free: 9.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 60.41 kB / 398.1 MB, free: 34.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1341, allocations: 58.05 MB / 456.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.0105/0.1446, allocations: 8.455 MB / 464.6 MB, free: 24 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.1552, allocations: 5.247 MB / 469.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.1567, allocations: 59.62 kB / 469.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01023/0.1669, allocations: 4.773 MB / 474.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002126/0.1691, allocations: 477.8 kB / 475.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001888/0.171, allocations: 466.5 kB / 475.6 MB, free: 5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004188/0.1752, allocations: 3.01 MB / 478.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001499/0.1767, allocations: 1.03 MB / 479.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009266/0.1776, allocations: 0.5679 MB / 480.2 MB, free: 364 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.1788, allocations: 0.7823 MB / 481 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.1789, allocations: 68 kB / 481.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003095/0.1792, allocations: 72 kB / 481.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004581/0.1797, allocations: 410.8 kB / 481.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007063/0.1804, allocations: 0.5518 MB / 482.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.1818, allocations: 1.542 MB / 483.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1819, allocations: 0 / 483.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1819, allocations: 4 kB / 483.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.1819, allocations: 0 / 483.6 MB, free: 12.93 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003141/0.185, allocations: 1.44 MB / 485.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.1851, allocations: 12.03 kB / 485.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004218/0.1855, allocations: 131.4 kB / 485.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.1872, allocations: 0.8826 MB / 486.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.1873, allocations: 62 kB / 486.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.1875, allocations: 91.89 kB / 486.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.1894, allocations: 1.229 MB / 487.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.1894, allocations: 0 / 487.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.185e-05/0.1895, allocations: 43.98 kB / 487.5 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002218/0.1898, allocations: 73.95 kB / 487.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.1914, allocations: 1.003 MB / 488.6 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006071/0.1975, allocations: 4.413 MB / 493 MB, free: 3.254 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.1988, allocations: 0.8871 MB / 493.9 MB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007107/0.1996, allocations: 448 kB / 494.3 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.879e-05/0.1996, allocations: 13.31 kB / 494.3 MB, free: 1.855 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.1997, allocations: 43.12 kB / 494.4 MB, free: 1.805 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 2.394e-06/0.1997, allocations: 0 / 494.4 MB, free: 1.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006531/0.2062, allocations: 3.287 MB / 497.7 MB, free: 14.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.768e-05/0.2063, allocations: 141.1 kB / 497.8 MB, free: 14.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00086/0.2072, allocations: 0.6842 MB / 498.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.62e-05/0.2073, allocations: 45.64 kB / 498.5 MB, free: 13.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.2076, allocations: 467.4 kB / 499 MB, free: 12.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.2078, allocations: 264.2 kB / 499.2 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.2081, allocations: 162.5 kB / 499.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.2082, allocations: 341.9 kB / 499.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006554/0.2089, allocations: 384.6 kB / 0.4884 GB, free: 11.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008309/0.2097, allocations: 0.5899 MB / 0.489 GB, free: 11.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007729/0.2175, allocations: 2.36 MB / 0.4913 GB, free: 8.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.2175, allocations: 0 / 0.4913 GB, free: 8.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005926/0.2235, allocations: 2.012 MB / 0.4932 GB, free: 6.633 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.2235, allocations: 4 kB / 0.4932 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.2235, allocations: 12 kB / 0.4933 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004935/0.2285, allocations: 1 MB / 0.4942 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006052/0.2291, allocations: 135.7 kB / 0.4944 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2946/0.5238, allocations: 9.142 MB / 0.5033 GB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008071/0.5246, allocations: 40.94 kB / 0.5033 GB, free: 54.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.813e-05/0.5247, allocations: 39.19 kB / 0.5034 GB, free: 54.22 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 system: $DER.asm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001067/0.5258, allocations: 0.6152 MB / 0.504 GB, free: 53.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007448/0.5265, allocations: 0.5676 MB / 0.5045 GB, free: 53.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008009/0.5346, allocations: 2.334 MB / 0.5068 GB, free: 52.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.315e-05/0.5346, allocations: 1.094 kB / 0.5068 GB, free: 52.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.00581/0.5404, allocations: 1.928 MB / 0.5087 GB, free: 52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.5405, allocations: 12.14 kB / 0.5087 GB, free: 52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/0.5405, allocations: 6.531 kB / 0.5087 GB, free: 52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004933/0.5454, allocations: 0.9877 MB / 0.5097 GB, free: 51.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.5461, allocations: 131.3 kB / 0.5098 GB, free: 51.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01496/0.5611, allocations: 8.939 MB / 0.5185 GB, free: 46.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008945/0.562, allocations: 39.42 kB / 0.5186 GB, free: 46.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.839e-05/0.5621, allocations: 34.95 kB / 0.5186 GB, free: 46.7 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_lambda0 system: $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 (65): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0003241/0.5625, allocations: 233.8 kB / 0.5188 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001924/0.5627, allocations: 87.38 kB / 0.5189 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.5649, allocations: 1.249 MB / 0.5201 GB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.5649, allocations: 11.81 kB / 0.5201 GB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.565, allocations: 2.281 kB / 0.5201 GB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.565, allocations: 4.469 kB / 0.5201 GB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003399/0.5684, allocations: 2.392 MB / 0.5225 GB, free: 44.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.5684, allocations: 5.094 kB / 0.5225 GB, free: 44.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008525/0.5693, allocations: 163.7 kB / 0.5226 GB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00045/0.5697, allocations: 152.7 kB / 0.5228 GB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.155e-05/0.5698, allocations: 23.77 kB / 0.5228 GB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00296/0.5728, allocations: 5.397 MB / 0.5281 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.5728, allocations: 0 / 0.5281 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.5751, allocations: 1.863 MB / 0.5299 GB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003556/0.5755, allocations: 233.4 kB / 0.5301 GB, free: 37.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.5757, allocations: 24.38 kB / 0.5301 GB, free: 37.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.5762, allocations: 31.41 kB / 0.5302 GB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.5764, allocations: 55.52 kB / 0.5302 GB, free: 37.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.634e-05/0.5764, allocations: 31.23 kB / 0.5302 GB, free: 37.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006127/0.577, allocations: 474.5 kB / 0.5307 GB, free: 36.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5771, allocations: 0 / 0.5307 GB, free: 36.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001968/0.579, allocations: 470 kB / 0.5311 GB, free: 36.89 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 (79): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001828/0.5792, allocations: 126.3 kB / 0.5313 GB, free: 36.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004745/0.584, allocations: 2.574 MB / 0.5338 GB, free: 35.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.584, allocations: 1.125 kB / 0.5338 GB, free: 35.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.5851, allocations: 0.9164 MB / 0.5347 GB, free: 34.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001485/0.5866, allocations: 230.4 kB / 0.5349 GB, free: 33.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.591, allocations: 2.838 MB / 0.5377 GB, free: 31.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009089/0.5919, allocations: 1.178 MB / 0.5388 GB, free: 29.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008788/0.5928, allocations: 201.5 kB / 0.539 GB, free: 29.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002661/0.5931, allocations: 82.91 kB / 0.5391 GB, free: 29.56 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5931, allocations: 0 / 0.5391 GB, free: 29.56 MB / 382.1 MB Notification: Performance of Templates: time 0.03768/0.6308, allocations: 23.59 MB / 0.5621 GB, free: 6.125 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile (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)