Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002254/0.002254, allocations: 184.6 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.4 MB / 221.9 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 94.8 kB / 270.2 MB, free: 13.22 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2776/0.2776, allocations: 38.05 MB / 356.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004539/0.0004542, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1089, allocations: 56.33 MB / 479 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009704/0.1187, allocations: 5.734 MB / 484.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01032/0.129, allocations: 4.437 MB / 489.2 MB, free: 7.82 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008863/0.13, allocations: 39.75 kB / 489.2 MB, free: 7.781 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00704/0.1371, allocations: 1.676 MB / 490.9 MB, free: 6.098 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00172/0.1388, allocations: 358.9 kB / 491.3 MB, free: 5.746 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.1401, allocations: 247.5 kB / 491.5 MB, free: 5.504 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001321/0.1415, allocations: 0.5384 MB / 492 MB, free: 4.965 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001892/0.1434, allocations: 0.7983 MB / 492.8 MB, free: 4.133 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000862/0.1443, allocations: 334.8 kB / 493.2 MB, free: 3.805 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007561/0.1451, allocations: 322.9 kB / 493.5 MB, free: 3.488 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.1453, allocations: 32 kB / 493.5 MB, free: 3.457 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003846/0.1457, allocations: 71.89 kB / 493.6 MB, free: 3.387 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004234/0.1461, allocations: 263.3 kB / 493.8 MB, free: 3.129 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003072/0.1464, allocations: 161.3 kB / 494 MB, free: 2.965 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001414/0.1479, allocations: 0.7986 MB / 494.8 MB, free: 2.164 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1479, allocations: 4 kB / 494.8 MB, free: 2.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1479, allocations: 0 / 494.8 MB, free: 2.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.651e-05/0.148, allocations: 0 / 494.8 MB, free: 2.16 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002881/0.1509, allocations: 0.8958 MB / 495.7 MB, free: 1.211 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1509, allocations: 8.031 kB / 495.7 MB, free: 1.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008168/0.1518, allocations: 107.1 kB / 495.8 MB, free: 1.098 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.1537, allocations: 0.5915 MB / 496.4 MB, free: 476 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/0.1539, allocations: 78.94 kB / 496.5 MB, free: 388 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.1541, allocations: 64 kB / 496.5 MB, free: 324 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/0.1562, allocations: 0.7982 MB / 497.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.032e-05/0.1563, allocations: 0 / 497.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.765e-05/0.1564, allocations: 28 kB / 497.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002398/0.1567, allocations: 53.23 kB / 497.4 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.1584, allocations: 0.5788 MB / 498 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00726/0.1657, allocations: 2.946 MB / 0.4892 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.1672, allocations: 422.2 kB / 0.4896 GB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.037e-05/0.1673, allocations: 8.328 kB / 0.4896 GB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008135/0.1681, allocations: 336.3 kB / 0.4899 GB, free: 10.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 3.607e-06/0.1682, allocations: 0 / 0.4899 GB, free: 10.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.005383/0.1736, allocations: 2.116 MB / 0.492 GB, free: 8.684 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1737, allocations: 140.5 kB / 0.4921 GB, free: 8.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008262/0.1746, allocations: 449.8 kB / 0.4926 GB, free: 8.066 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.1747, allocations: 29.7 kB / 0.4926 GB, free: 8.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003425/0.1751, allocations: 374.3 kB / 0.493 GB, free: 7.664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002526/0.1753, allocations: 157.8 kB / 0.4931 GB, free: 7.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-05/0.1754, allocations: 15.94 kB / 0.4931 GB, free: 7.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1756, allocations: 334.8 kB / 0.4934 GB, free: 7.156 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006444/0.1762, allocations: 233.2 kB / 0.4937 GB, free: 6.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007531/0.177, allocations: 390.2 kB / 0.494 GB, free: 6.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003633/0.1807, allocations: 0.7463 MB / 0.4948 GB, free: 5.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.1807, allocations: 0 / 0.4948 GB, free: 5.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003149/0.1839, allocations: 0.94 MB / 0.4957 GB, free: 4.754 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.217e-05/0.184, allocations: 37.8 kB / 0.4957 GB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.184, allocations: 8 kB / 0.4957 GB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001614/0.1856, allocations: 309.5 kB / 0.496 GB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.1876, allocations: 175.7 kB / 0.4962 GB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.1984, allocations: 4.989 MB / 0.5011 GB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006557/0.1991, allocations: 23.98 kB / 0.5011 GB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.298e-05/0.1992, allocations: 24 kB / 0.5011 GB, free: 14.92 MB / 362.7 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_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0006139/0.1998, allocations: 303.2 kB / 0.5014 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.2, allocations: 55.34 kB / 0.5014 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.2019, allocations: 0.8178 MB / 0.5022 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.2019, allocations: 4 kB / 0.5023 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.202, allocations: 4 kB / 0.5023 GB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.202, allocations: 4 kB / 0.5023 GB, free: 13.67 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003973/0.206, allocations: 1.681 MB / 0.5039 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.206, allocations: 4 kB / 0.5039 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002562/0.2086, allocations: 191.9 kB / 0.5041 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004114/0.209, allocations: 78.47 kB / 0.5042 GB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-05/0.2091, allocations: 23.98 kB / 0.5042 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004067/0.2132, allocations: 3.961 MB / 0.5081 GB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2133, allocations: 320 / 0.5081 GB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/0.2158, allocations: 1.179 MB / 0.5092 GB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000372/0.2162, allocations: 164.5 kB / 0.5094 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.2164, allocations: 16 kB / 0.5094 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004644/0.2168, allocations: 15.98 kB / 0.5094 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.217, allocations: 39.91 kB / 0.5094 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/0.2171, allocations: 19.98 kB / 0.5094 GB, free: 5.641 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005739/0.2176, allocations: 311.1 kB / 0.5097 GB, free: 5.336 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2177, allocations: 0 / 0.5097 GB, free: 5.336 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001027/0.2187, allocations: 160 kB / 0.5099 GB, free: 5.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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: 3 {(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.0002177/0.2189, allocations: 129 kB / 0.51 GB, free: 5.047 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00295/0.2219, allocations: 0.9763 MB / 0.511 GB, free: 4.027 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.2219, allocations: 0 / 0.511 GB, free: 4.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001384/0.2233, allocations: 0.6486 MB / 0.5116 GB, free: 3.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000986/0.2243, allocations: 109.8 kB / 0.5117 GB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004608/0.229, allocations: 2.085 MB / 0.5137 GB, free: 1.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008527/0.2299, allocations: 0.9994 MB / 0.5147 GB, free: 64 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.2302, allocations: 39.44 kB / 0.5148 GB, free: 24 kB / 362.7 MB Notification: Performance of SimCode: time 2.775e-06/0.2302, allocations: 0 / 0.5148 GB, free: 24 kB / 362.7 MB Notification: Performance of Templates: time 0.3207/0.5509, allocations: 13.93 MB / 0.5284 GB, free: 47.35 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)