Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_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.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 93.67 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.001356/0.001356, allocations: 184 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.562/1.562, allocations: 205.4 MB / 223.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3544/0.3544, allocations: 38.05 MB / 309.7 MB, free: 8.844 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.0005853/0.0005854, allocations: 22.19 kB / 376.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1226, allocations: 56.34 MB / 432.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008544/0.1312, allocations: 7.02 MB / 439.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005515/0.1368, allocations: 3.181 MB / 443 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009152/0.1377, allocations: 51.69 kB / 443.1 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007271/0.1385, allocations: 242.5 kB / 443.3 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001532/0.14, allocations: 0.5802 MB / 443.9 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.1411, allocations: 387.2 kB / 444.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.1425, allocations: 0.851 MB / 445.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.1437, allocations: 0.968 MB / 446.1 MB, free: 9.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005585/0.1443, allocations: 426.4 kB / 446.5 MB, free: 8.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005851/0.1449, allocations: 458.1 kB / 447 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.527e-05/0.145, allocations: 44 kB / 447 MB, free: 8.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005455/0.1455, allocations: 259.6 kB / 447.3 MB, free: 8.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.1459, allocations: 307.1 kB / 447.6 MB, free: 7.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.1461, allocations: 225.1 kB / 447.8 MB, free: 7.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.1471, allocations: 1.282 MB / 449.1 MB, free: 6.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1472, allocations: 0 / 449.1 MB, free: 6.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1472, allocations: 4 kB / 449.1 MB, free: 6.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.1472, allocations: 0 / 449.1 MB, free: 6.379 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.002256/0.1494, allocations: 1.234 MB / 450.3 MB, free: 5.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.1495, allocations: 8.031 kB / 450.3 MB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006492/0.1502, allocations: 162.5 kB / 450.5 MB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.1515, allocations: 0.7809 MB / 451.2 MB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.091e-05/0.1516, allocations: 61.98 kB / 451.3 MB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/0.1518, allocations: 91.91 kB / 451.4 MB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.1535, allocations: 1.149 MB / 452.5 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.1535, allocations: 8 kB / 452.5 MB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.131e-05/0.1536, allocations: 39.98 kB / 452.6 MB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.942e-05/0.1537, allocations: 65.97 kB / 452.7 MB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.1552, allocations: 0.9368 MB / 453.6 MB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2164/0.3716, allocations: 4.651 MB / 458.2 MB, free: 48.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009833/0.3726, allocations: 0.6918 MB / 458.9 MB, free: 48.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.232e-05/0.3727, allocations: 7.469 kB / 458.9 MB, free: 48.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.3727, allocations: 49.16 kB / 459 MB, free: 48.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.575e-06/0.3727, allocations: 0 / 459 MB, free: 48.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=62): time 0.00417/0.3769, allocations: 2.567 MB / 461.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.377, allocations: 144 kB / 461.7 MB, free: 46.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000706/0.3777, allocations: 0.6802 MB / 462.4 MB, free: 46.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.3777, allocations: 35.23 kB / 462.4 MB, free: 46.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.378, allocations: 491.4 kB / 462.9 MB, free: 46.58 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.3781, allocations: 220.9 kB / 463.1 MB, free: 46.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.3781, allocations: 15.06 kB / 463.1 MB, free: 46.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3782, allocations: 398.3 kB / 463.5 MB, free: 46.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004461/0.3787, allocations: 272.2 kB / 463.8 MB, free: 46.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006129/0.3793, allocations: 0.5143 MB / 464.3 MB, free: 45.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/0.3817, allocations: 0.8239 MB / 465.1 MB, free: 45.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.3818, allocations: 3.375 kB / 465.1 MB, free: 45.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002776/0.3845, allocations: 1.498 MB / 466.6 MB, free: 45.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005829/0.3851, allocations: 2.964 MB / 469.6 MB, free: 42.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.3852, allocations: 10.06 kB / 469.6 MB, free: 42.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/0.3866, allocations: 478.5 kB / 470.1 MB, free: 42.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.3871, allocations: 141.9 kB / 470.2 MB, free: 42.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008365/0.3955, allocations: 7.795 MB / 478 MB, free: 36.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007634/0.3963, allocations: 45.66 kB / 478 MB, free: 36.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/0.3963, allocations: 33.39 kB / 478.1 MB, free: 36.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.3963, allocations: 3.5 kB / 478.1 MB, free: 36.5 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002225/0.3986, allocations: 1.304 MB / 479.4 MB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.3986, allocations: 6.406 kB / 479.4 MB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.3999, allocations: 444 kB / 479.8 MB, free: 35.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/0.4004, allocations: 145 kB / 480 MB, free: 35.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006856/0.4073, allocations: 7.487 MB / 487.4 MB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007042/0.408, allocations: 41.53 kB / 487.5 MB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.4081, allocations: 36.81 kB / 487.5 MB, free: 30.2 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.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (70): * Single equations (assignments): 67 * 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 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.000646/0.4087, allocations: 401.8 kB / 487.9 MB, free: 29.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.4089, allocations: 84.8 kB / 488 MB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.41, allocations: 0.835 MB / 488.8 MB, free: 29.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.41, allocations: 6.656 kB / 488.8 MB, free: 29.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4101, allocations: 6.203 kB / 488.8 MB, free: 29.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.4101, allocations: 10.97 kB / 488.9 MB, free: 29.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.4124, allocations: 1.869 MB / 490.7 MB, free: 28.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.4125, allocations: 0 / 490.7 MB, free: 28.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006005/0.4131, allocations: 134.5 kB / 490.9 MB, free: 28.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.4132, allocations: 50.89 kB / 490.9 MB, free: 28.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.539e-05/0.4133, allocations: 11.03 kB / 490.9 MB, free: 28.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.4145, allocations: 2.677 MB / 493.6 MB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4145, allocations: 0 / 493.6 MB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.416, allocations: 1.367 MB / 495 MB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003327/0.4164, allocations: 213 kB / 495.2 MB, free: 24.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.4165, allocations: 11.06 kB / 495.2 MB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.4169, allocations: 38.78 kB / 495.2 MB, free: 24.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.031e-05/0.417, allocations: 42.3 kB / 495.3 MB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.4171, allocations: 20.78 kB / 495.3 MB, free: 24.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000485/0.4176, allocations: 475 kB / 495.7 MB, free: 24.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4176, allocations: 0 / 495.7 MB, free: 24.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001599/0.4192, allocations: 408.8 kB / 496.1 MB, free: 24.38 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],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 (65): * Single equations (assignments): 62 * 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: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003024/0.4195, allocations: 144.5 kB / 496.3 MB, free: 24.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003369/0.4229, allocations: 2.236 MB / 498.5 MB, free: 23.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4229, allocations: 0 / 498.5 MB, free: 23.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000608/0.4235, allocations: 0.5609 MB / 499.1 MB, free: 22.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009021/0.4244, allocations: 196.4 kB / 499.3 MB, free: 22.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.4277, allocations: 2.567 MB / 0.4901 GB, free: 21.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007767/0.4284, allocations: 1.138 MB / 0.4912 GB, free: 20.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007803/0.4292, allocations: 209.7 kB / 0.4914 GB, free: 20.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.4295, allocations: 62.58 kB / 0.4914 GB, free: 20.34 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4295, allocations: 4 kB / 0.4914 GB, free: 20.33 MB / 382.1 MB Notification: Performance of Templates: time 0.03787/0.4673, allocations: 16.05 MB / 0.5071 GB, free: 16.75 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: