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.000957/0.0009571, allocations: 90.78 kB / 16.31 MB, free: 6.461 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.001321/0.001321, allocations: 181.9 kB / 17.21 MB, free: 6.328 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.449/1.449, allocations: 205.4 MB / 223.4 MB, free: 5.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3005/0.3005, 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.000748/0.0007482, allocations: 16 kB / 376.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1058, allocations: 56.33 MB / 432.9 MB, free: 6.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007888/0.1137, allocations: 7.544 MB / 440.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007112/0.1209, allocations: 4.834 MB / 445.2 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.1224, allocations: 51.69 kB / 445.3 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008962/0.1313, allocations: 4.48 MB / 449.8 MB, free: 5.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001691/0.1331, allocations: 0.5285 MB / 450.3 MB, free: 5.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.1344, allocations: 407.4 kB / 450.7 MB, free: 4.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003372/0.1378, allocations: 2.573 MB / 453.3 MB, free: 2.383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001783/0.1396, allocations: 1.023 MB / 454.3 MB, free: 1.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.1408, allocations: 0.5407 MB / 454.8 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.142, allocations: 0.7083 MB / 455.5 MB, free: 60 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002112/0.1422, allocations: 51.94 kB / 455.6 MB, free: 8 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1942/0.3364, allocations: 58.06 kB / 455.6 MB, free: 38.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007268/0.3372, allocations: 381.2 kB / 456 MB, free: 38.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.3377, allocations: 229.3 kB / 456.2 MB, free: 38.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001221/0.3389, allocations: 1.247 MB / 457.5 MB, free: 38.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3389, allocations: 1.531 kB / 457.5 MB, free: 38.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3389, allocations: 3.156 kB / 457.5 MB, free: 38.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.339, allocations: 0 / 457.5 MB, free: 38.66 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.002142/0.3411, allocations: 1.248 MB / 458.7 MB, free: 37.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.3412, allocations: 10.05 kB / 458.7 MB, free: 37.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003498/0.3415, allocations: 140.4 kB / 458.9 MB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.3429, allocations: 0.8525 MB / 459.7 MB, free: 37.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/0.3429, allocations: 63.66 kB / 459.8 MB, free: 37.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.3431, allocations: 91.19 kB / 459.9 MB, free: 37.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.3447, allocations: 1.227 MB / 461.1 MB, free: 37.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/0.3447, allocations: 5.453 kB / 461.1 MB, free: 37.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-05/0.3448, allocations: 42.98 kB / 461.2 MB, free: 37.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001724/0.345, allocations: 75.08 kB / 461.2 MB, free: 37.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.3464, allocations: 1.011 MB / 462.2 MB, free: 37.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004961/0.3514, allocations: 4.438 MB / 466.7 MB, free: 35.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.3525, allocations: 0.8999 MB / 467.6 MB, free: 35.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000552/0.3531, allocations: 446.7 kB / 468 MB, free: 35.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.613e-05/0.3532, allocations: 13.61 kB / 468 MB, free: 35.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.3532, allocations: 43.8 kB / 468.1 MB, free: 35.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.285e-06/0.3532, allocations: 0 / 468.1 MB, free: 35.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005249/0.3585, allocations: 3.336 MB / 471.4 MB, free: 34.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.3585, allocations: 144.3 kB / 471.6 MB, free: 34.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000654/0.3592, allocations: 0.6787 MB / 472.2 MB, free: 33.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/0.3592, allocations: 40.98 kB / 472.3 MB, free: 33.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.3595, allocations: 477 kB / 472.7 MB, free: 33.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.3597, allocations: 260.4 kB / 473 MB, free: 33.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.3597, allocations: 16.72 kB / 473 MB, free: 33.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.859e-05/0.3598, allocations: 340.5 kB / 473.3 MB, free: 33.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/0.3603, allocations: 373.9 kB / 473.7 MB, free: 33.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005759/0.3609, allocations: 0.5895 MB / 474.3 MB, free: 32.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005331/0.3663, allocations: 1.528 MB / 475.8 MB, free: 32.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3663, allocations: 0 / 475.8 MB, free: 32.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004924/0.3712, allocations: 2.061 MB / 477.9 MB, free: 32.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000159/0.3714, allocations: 278.5 kB / 478.2 MB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.3714, allocations: 5.875 kB / 478.2 MB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003942/0.3754, allocations: 1.054 MB / 479.2 MB, free: 32.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/0.3759, allocations: 129.6 kB / 479.3 MB, free: 32.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/0.3883, allocations: 9.229 MB / 488.6 MB, free: 28.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007036/0.389, allocations: 39.19 kB / 488.6 MB, free: 28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.3891, allocations: 40.11 kB / 488.7 MB, free: 27.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.3892, allocations: 2.938 kB / 488.7 MB, free: 27.99 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004425/0.3936, allocations: 1.846 MB / 490.5 MB, free: 27.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.3936, allocations: 6.469 kB / 490.5 MB, free: 27.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003858/0.3975, allocations: 1 MB / 491.5 MB, free: 27.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005542/0.3981, allocations: 134 kB / 491.6 MB, free: 27.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01475/0.4128, allocations: 8.951 MB / 0.4889 GB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.414, allocations: 41.97 kB / 0.4889 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/0.4142, allocations: 43.02 kB / 0.4889 GB, free: 21.96 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 (65): * Single equations (assignments): 63 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.00108/0.4153, allocations: 404 kB / 0.4893 GB, free: 21.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005044/0.4158, allocations: 89.08 kB / 0.4894 GB, free: 21.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002544/0.4184, allocations: 1.256 MB / 0.4906 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.4184, allocations: 9.812 kB / 0.4906 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.4184, allocations: 2.656 kB / 0.4906 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.4185, allocations: 13.31 kB / 0.4907 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004092/0.4226, allocations: 2.415 MB / 0.493 GB, free: 19.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.4226, allocations: 1.094 kB / 0.493 GB, free: 19.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008546/0.4234, allocations: 156.7 kB / 0.4932 GB, free: 19.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004835/0.4239, allocations: 157 kB / 0.4933 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-05/0.4241, allocations: 23.98 kB / 0.4933 GB, free: 19.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003378/0.4274, allocations: 5.402 MB / 0.4986 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.4275, allocations: 8.047 kB / 0.4986 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003107/0.4306, allocations: 1.869 MB / 0.5004 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.4311, allocations: 231.9 kB / 0.5007 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.4313, allocations: 24.45 kB / 0.5007 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005492/0.4319, allocations: 30.59 kB / 0.5007 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.4321, allocations: 63.25 kB / 0.5008 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.157e-05/0.4321, allocations: 28.91 kB / 0.5008 GB, free: 13.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008308/0.433, allocations: 472.2 kB / 0.5013 GB, free: 12.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.433, allocations: 0 / 0.5013 GB, free: 12.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002448/0.4355, allocations: 466.2 kB / 0.5017 GB, free: 12.78 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(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.0001842/0.4356, allocations: 119.3 kB / 0.5018 GB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005748/0.4414, allocations: 2.587 MB / 0.5043 GB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.4414, allocations: 1.406 kB / 0.5043 GB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.4428, allocations: 0.9252 MB / 0.5052 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.4443, allocations: 229.9 kB / 0.5055 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004884/0.4492, allocations: 2.928 MB / 0.5083 GB, free: 9.094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.4503, allocations: 1.176 MB / 0.5095 GB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009843/0.4513, allocations: 203.1 kB / 0.5097 GB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/0.4516, allocations: 73 kB / 0.5097 GB, free: 8.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4516, allocations: 6.078 kB / 0.5097 GB, free: 8.266 MB / 382.1 MB Notification: Performance of Templates: time 0.03574/0.4873, allocations: 22.61 MB / 0.5318 GB, free: 6.168 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: