Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001592/0.001592, allocations: 185.2 kB / 15.77 MB, free: 6.375 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.017/2.017, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001178/0.001178, allocations: 98.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2665/0.2665, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004643/0.0004641, allocations: 20 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 56.33 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.009197/0.1177, allocations: 5.285 MB / 484.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009646/0.1274, allocations: 4.102 MB / 488.5 MB, free: 8.508 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006506/0.1282, allocations: 35.75 kB / 488.6 MB, free: 8.473 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006471/0.1347, allocations: 1.665 MB / 490.2 MB, free: 6.801 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.136, allocations: 279 kB / 490.5 MB, free: 6.527 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009095/0.1369, allocations: 231.5 kB / 490.7 MB, free: 6.301 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008985/0.1378, allocations: 487.4 kB / 491.2 MB, free: 5.824 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.1389, allocations: 0.4907 MB / 491.7 MB, free: 5.301 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004817/0.1394, allocations: 259 kB / 491.9 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005937/0.14, allocations: 282.9 kB / 492.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.583e-05/0.1401, allocations: 27.94 kB / 492.2 MB, free: 4.742 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002982/0.1404, allocations: 59.97 kB / 492.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003393/0.1408, allocations: 235.3 kB / 492.5 MB, free: 4.453 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.141, allocations: 141.3 kB / 492.7 MB, free: 4.309 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008691/0.1419, allocations: 0.5572 MB / 493.2 MB, free: 3.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1419, allocations: 0 / 493.2 MB, free: 3.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1419, allocations: 0 / 493.2 MB, free: 3.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1419, allocations: 0 / 493.2 MB, free: 3.75 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002201/0.1441, allocations: 0.8042 MB / 494 MB, free: 2.895 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1442, allocations: 12.03 kB / 494 MB, free: 2.883 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000153/0.1443, allocations: 86.52 kB / 494.1 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006567/0.145, allocations: 107.1 kB / 494.2 MB, free: 2.684 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/0.1466, allocations: 0.5132 MB / 494.7 MB, free: 2.129 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.1466, allocations: 32.98 kB / 494.8 MB, free: 2.094 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.1468, allocations: 55.91 kB / 494.8 MB, free: 2.039 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.1483, allocations: 0.6374 MB / 495.5 MB, free: 1.363 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.1483, allocations: 7.938 kB / 495.5 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.199e-05/0.1484, allocations: 20 kB / 495.5 MB, free: 1.336 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002218/0.1486, allocations: 48.97 kB / 495.5 MB, free: 1.289 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1499, allocations: 487.5 kB / 496 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005337/0.1553, allocations: 2.535 MB / 498.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007964/0.1561, allocations: 315.6 kB / 498.9 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.1562, allocations: 8.562 kB / 498.9 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.1562, allocations: 38.5 kB / 498.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 3.667e-06/0.1563, allocations: 0 / 498.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.003848/0.1601, allocations: 1.634 MB / 0.4888 GB, free: 11.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.671e-05/0.1602, allocations: 110.8 kB / 0.4889 GB, free: 11.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000671/0.1609, allocations: 425.8 kB / 0.4893 GB, free: 11.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.104e-05/0.161, allocations: 29.7 kB / 0.4894 GB, free: 11.39 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002753/0.1612, allocations: 350 kB / 0.4897 GB, free: 11.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.1614, allocations: 122.2 kB / 0.4898 GB, free: 10.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.1615, allocations: 8 kB / 0.4898 GB, free: 10.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1616, allocations: 322.8 kB / 0.4901 GB, free: 10.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004367/0.1621, allocations: 169 kB / 0.4903 GB, free: 10.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005537/0.1626, allocations: 301.8 kB / 0.4906 GB, free: 10.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.1632, allocations: 207.6 kB / 0.4908 GB, free: 9.871 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1632, allocations: 0 / 0.4908 GB, free: 9.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.002204/0.1654, allocations: 0.7688 MB / 0.4915 GB, free: 9.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.1655, allocations: 8.031 kB / 0.4915 GB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.1655, allocations: 8 kB / 0.4915 GB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.1666, allocations: 213.5 kB / 0.4917 GB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00056/0.1672, allocations: 67.89 kB / 0.4918 GB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006904/0.1741, allocations: 3.993 MB / 0.4957 GB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005111/0.1746, allocations: 16 kB / 0.4957 GB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.695e-05/0.1747, allocations: 23.98 kB / 0.4957 GB, free: 4.484 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * 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 initialization (40): * Single equations (assignments): 38 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004288/0.1752, allocations: 229.6 kB / 0.496 GB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.1753, allocations: 47.38 kB / 0.496 GB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.1768, allocations: 0.6371 MB / 0.4966 GB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.1768, allocations: 4 kB / 0.4966 GB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1768, allocations: 0 / 0.4966 GB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.1768, allocations: 3.984 kB / 0.4966 GB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002614/0.1794, allocations: 1.187 MB / 0.4978 GB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.1795, allocations: 3.953 kB / 0.4978 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008278/0.1803, allocations: 75.89 kB / 0.4979 GB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002626/0.1806, allocations: 61.61 kB / 0.4979 GB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.672e-05/0.1807, allocations: 12 kB / 0.4979 GB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/0.1833, allocations: 2.634 MB / 0.5005 GB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.1834, allocations: 7.969 kB / 0.5005 GB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.1853, allocations: 1.006 MB / 0.5015 GB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/0.1856, allocations: 144.5 kB / 0.5016 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.569e-05/0.1857, allocations: 19.98 kB / 0.5017 GB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000425/0.1861, allocations: 12 kB / 0.5017 GB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.1863, allocations: 27.95 kB / 0.5017 GB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.1863, allocations: 12 kB / 0.5017 GB, free: 13.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004833/0.1868, allocations: 287.1 kB / 0.502 GB, free: 13.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1868, allocations: 0 / 0.502 GB, free: 13.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008781/0.1877, allocations: 136 kB / 0.5021 GB, free: 13.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * 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.002316/0.19, allocations: 1.819 MB / 0.5039 GB, free: 11.49 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.1921, allocations: 0.7239 MB / 0.5046 GB, free: 10.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1921, allocations: 0 / 0.5046 GB, free: 10.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008499/0.1929, allocations: 422.3 kB / 0.505 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009218/0.1939, allocations: 101.8 kB / 0.5051 GB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.204, allocations: 6.74 MB / 0.5117 GB, free: 3.285 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007562/0.2048, allocations: 0.9599 MB / 0.5126 GB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004705/0.2053, allocations: 203.4 kB / 0.5128 GB, free: 2.102 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2053, allocations: 0 / 0.5128 GB, free: 2.102 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.191/3.397, allocations: 13.59 MB / 0.5261 GB, free: 48.75 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)