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.001337/0.001337, allocations: 172.2 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007716/0.0007716, allocations: 78.38 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1624/0.1624, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003372, allocations: 16 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08685/0.0872, allocations: 56.33 MB / 479.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006181/0.09342, allocations: 6.001 MB / 485.1 MB, free: 12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006035/0.09949, allocations: 4.479 MB / 489.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000495/0.1, allocations: 39.75 kB / 489.6 MB, free: 7.469 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006997/0.107, allocations: 4.403 MB / 494 MB, free: 3.059 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001288/0.1083, allocations: 477.8 kB / 494.5 MB, free: 2.59 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007525/0.1091, allocations: 247.5 kB / 494.7 MB, free: 2.348 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002037/0.1111, allocations: 1.937 MB / 496.6 MB, free: 416 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.1123, allocations: 0.7944 MB / 497.4 MB, free: 15.58 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005027/0.1128, allocations: 398.4 kB / 497.8 MB, free: 15.19 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005741/0.1134, allocations: 482.3 kB / 498.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.095e-05/0.1135, allocations: 32 kB / 498.3 MB, free: 14.68 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.1137, allocations: 67.91 kB / 498.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.114, allocations: 283.2 kB / 498.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.1142, allocations: 165.4 kB / 498.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007318/0.1149, allocations: 0.8064 MB / 499.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1149, allocations: 4 kB / 499.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1149, allocations: 0 / 499.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1149, allocations: 0 / 499.6 MB, free: 13.36 MB / 346.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.001637/0.1166, allocations: 0.8959 MB / 0.4888 GB, free: 12.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.1166, allocations: 8.031 kB / 0.4888 GB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003956/0.117, allocations: 99.08 kB / 0.4889 GB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.118, allocations: 0.5875 MB / 0.4895 GB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.675e-05/0.1181, allocations: 86.88 kB / 0.4896 GB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.1183, allocations: 63.98 kB / 0.4896 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.1194, allocations: 0.8059 MB / 0.4904 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.1195, allocations: 0 / 0.4904 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/0.1195, allocations: 27.98 kB / 0.4904 GB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/0.1197, allocations: 57.23 kB / 0.4905 GB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009332/0.1206, allocations: 0.5789 MB / 0.4911 GB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003891/0.1245, allocations: 2.943 MB / 0.4939 GB, free: 6.961 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007664/0.1253, allocations: 426.1 kB / 0.4943 GB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.1256, allocations: 222.3 kB / 0.4945 GB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.1257, allocations: 12.3 kB / 0.4946 GB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004752/0.1262, allocations: 343.6 kB / 0.4949 GB, free: 5.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 1.733e-06/0.1262, allocations: 0 / 0.4949 GB, free: 5.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.003262/0.1294, allocations: 2.044 MB / 0.4969 GB, free: 3.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.297e-05/0.1296, allocations: 140.5 kB / 0.497 GB, free: 3.562 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000495/0.1301, allocations: 445.8 kB / 0.4974 GB, free: 3.117 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.1301, allocations: 33.7 kB / 0.4975 GB, free: 3.078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.1304, allocations: 339.8 kB / 0.4978 GB, free: 2.742 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1305, allocations: 157.7 kB / 0.4979 GB, free: 2.586 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.1305, allocations: 16 kB / 0.498 GB, free: 2.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1307, allocations: 358.8 kB / 0.4983 GB, free: 2.211 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.1311, allocations: 237.2 kB / 0.4985 GB, free: 1.977 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004388/0.1315, allocations: 390.2 kB / 0.4989 GB, free: 1.531 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.1335, allocations: 0.7502 MB / 0.4996 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1335, allocations: 4 kB / 0.4996 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001743/0.1353, allocations: 0.9668 MB / 0.5006 GB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.1353, allocations: 33.7 kB / 0.5006 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.1353, allocations: 4.25 kB / 0.5006 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009538/0.1363, allocations: 313.5 kB / 0.5009 GB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009436/0.1373, allocations: 171.7 kB / 0.5011 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006068/0.1433, allocations: 4.852 MB / 0.5058 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000358/0.1437, allocations: 27.98 kB / 0.5058 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/0.1438, allocations: 24 kB / 0.5059 GB, free: 10.07 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.000434/0.1442, allocations: 295.3 kB / 0.5062 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.169e-05/0.1443, allocations: 51.34 kB / 0.5062 GB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.1455, allocations: 0.8207 MB / 0.507 GB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1455, allocations: 8 kB / 0.507 GB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1455, allocations: 0 / 0.507 GB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1455, allocations: 0 / 0.507 GB, free: 8.832 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.002302/0.1478, allocations: 1.679 MB / 0.5087 GB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1478, allocations: 4.094 kB / 0.5087 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.1491, allocations: 199.9 kB / 0.5088 GB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002259/0.1493, allocations: 74.52 kB / 0.5089 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.1494, allocations: 15.98 kB / 0.5089 GB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/0.1521, allocations: 3.953 MB / 0.5128 GB, free: 2.371 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1521, allocations: 4.031 kB / 0.5128 GB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.1536, allocations: 1.118 MB / 0.5139 GB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.1538, allocations: 172.4 kB / 0.5141 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.1539, allocations: 19.94 kB / 0.5141 GB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.1542, allocations: 19.98 kB / 0.5141 GB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.211e-05/0.1542, allocations: 31.91 kB / 0.5141 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.1543, allocations: 19.98 kB / 0.5141 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003539/0.1546, allocations: 307.1 kB / 0.5144 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1547, allocations: 0 / 0.5144 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006493/0.1553, allocations: 168 kB / 0.5146 GB, free: 436 kB / 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.0001558/0.1555, allocations: 117 kB / 0.5147 GB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.172/0.3274, allocations: 0.9665 MB / 0.5156 GB, free: 52.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.3275, allocations: 0 / 0.5156 GB, free: 52.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008025/0.3283, allocations: 0.6501 MB / 0.5163 GB, free: 52.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007957/0.3291, allocations: 123.8 kB / 0.5164 GB, free: 52.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.3317, allocations: 2.097 MB / 0.5184 GB, free: 51.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004695/0.3322, allocations: 0.9738 MB / 0.5194 GB, free: 50.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.3324, allocations: 51.59 kB / 0.5194 GB, free: 50.9 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3324, allocations: 0 / 0.5194 GB, free: 50.9 MB / 362.7 MB Notification: Performance of Templates: time 0.01719/0.3496, allocations: 14.57 MB / 0.5337 GB, free: 45.46 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)