Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_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.002406/0.002406, allocations: 181.6 kB / 15.76 MB, free: 6.34 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.006/2.006, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001124/0.001124, allocations: 90.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2598/0.2598, allocations: 38.07 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004505/0.0004506, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1038, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4815/0.5853, allocations: 97.69 MB / 0.5633 GB, free: 1.852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.5857, allocations: 103 kB / 0.5634 GB, free: 1.797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04181/0.6275, allocations: 9.957 MB / 0.5731 GB, free: 9.301 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.6275, allocations: 0 / 0.5731 GB, free: 9.301 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.948e-05/0.6276, allocations: 11.94 kB / 0.5731 GB, free: 9.289 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001434/0.629, allocations: 0.6272 MB / 0.5738 GB, free: 8.633 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.6291, allocations: 8.031 kB / 0.5738 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.6292, allocations: 68.17 kB / 0.5738 GB, free: 8.566 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.6293, allocations: 43.48 kB / 0.5739 GB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.6314, allocations: 0.6234 MB / 0.5745 GB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.6315, allocations: 23.19 kB / 0.5745 GB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.366e-05/0.6315, allocations: 23.38 kB / 0.5745 GB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007455/0.6323, allocations: 350.1 kB / 0.5749 GB, free: 7.625 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.6323, allocations: 0 / 0.5749 GB, free: 7.625 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.081e-05/0.6324, allocations: 10.88 kB / 0.5749 GB, free: 7.621 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.6324, allocations: 8 kB / 0.5749 GB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005561/0.633, allocations: 198.8 kB / 0.5751 GB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.6353, allocations: 1.498 MB / 0.5765 GB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005727/0.636, allocations: 185.9 kB / 0.5767 GB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.636, allocations: 0 / 0.5767 GB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/0.6361, allocations: 54.17 kB / 0.5768 GB, free: 5.812 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 2.084e-06/0.6361, allocations: 0 / 0.5768 GB, free: 5.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.00163/0.6377, allocations: 0.6724 MB / 0.5774 GB, free: 5.172 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.6378, allocations: 136.8 kB / 0.5775 GB, free: 5.008 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004379/0.6383, allocations: 286.5 kB / 0.5778 GB, free: 4.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.6383, allocations: 33.2 kB / 0.5778 GB, free: 4.734 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.6385, allocations: 259.2 kB / 0.5781 GB, free: 4.523 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.089e-05/0.6386, allocations: 69.45 kB / 0.5782 GB, free: 4.465 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.915e-05/0.6386, allocations: 7.625 kB / 0.5782 GB, free: 4.461 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.6388, allocations: 317.9 kB / 0.5785 GB, free: 4.145 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.6389, allocations: 51.84 kB / 0.5785 GB, free: 4.109 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.6392, allocations: 143.5 kB / 0.5787 GB, free: 3.945 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.6394, allocations: 74.56 kB / 0.5787 GB, free: 3.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.6394, allocations: 4 kB / 0.5787 GB, free: 3.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005711/0.64, allocations: 235.4 kB / 0.579 GB, free: 3.711 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.64, allocations: 8 kB / 0.579 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.6401, allocations: 4 kB / 0.579 GB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.6401, allocations: 7.938 kB / 0.579 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006722/0.6408, allocations: 80.28 kB / 0.579 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.6419, allocations: 1.29 MB / 0.5803 GB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.6423, allocations: 15.94 kB / 0.5803 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.6423, allocations: 11.62 kB / 0.5803 GB, free: 2.195 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002857/0.6426, allocations: 170.8 kB / 0.5805 GB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.6427, allocations: 27.62 kB / 0.5805 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004949/0.6432, allocations: 182.4 kB / 0.5807 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.6433, allocations: 3.953 kB / 0.5807 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.6433, allocations: 4 kB / 0.5807 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.6433, allocations: 4.031 kB / 0.5807 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.6444, allocations: 0.5392 MB / 0.5812 GB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.6445, allocations: 0 / 0.5812 GB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.6449, allocations: 42.8 kB / 0.5813 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.208e-05/0.6449, allocations: 7.953 kB / 0.5813 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.645, allocations: 3.562 kB / 0.5813 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.645, allocations: 8 kB / 0.5813 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.645, allocations: 0 / 0.5813 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007221/0.6457, allocations: 0.5201 MB / 0.5818 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.6459, allocations: 112 kB / 0.5819 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.6459, allocations: 8 kB / 0.5819 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/0.6462, allocations: 3.812 kB / 0.5819 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.6463, allocations: 15.61 kB / 0.5819 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.6463, allocations: 4 kB / 0.5819 GB, free: 0.668 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003176/0.6466, allocations: 221.6 kB / 0.5822 GB, free: 500 kB / 378.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6467, allocations: 0 / 0.5822 GB, free: 500 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006236/0.6473, allocations: 70.86 kB / 0.5822 GB, free: 436 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001375/0.6487, allocations: 1.293 MB / 0.5835 GB, free: 15.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006447/0.6494, allocations: 167 kB / 0.5836 GB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.6494, allocations: 0 / 0.5836 GB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.6496, allocations: 69.78 kB / 0.5837 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009037/0.6505, allocations: 83.14 kB / 0.5838 GB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005761/0.6563, allocations: 4.214 MB / 0.5879 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005789/0.6569, allocations: 0.8061 MB / 0.5887 GB, free: 9.977 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.6572, allocations: 111.5 kB / 0.5888 GB, free: 9.941 MB / 394.7 MB Notification: Performance of SimCode: time 3.396e-06/0.6572, allocations: 0 / 0.5888 GB, free: 9.941 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.667/3.325, allocations: 6.477 MB / 0.5951 GB, free: 3.535 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)