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.001567/0.001566, allocations: 187.7 kB / 13.2 MB, free: 2.117 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.995/1.995, allocations: 205.2 MB / 218.9 MB, free: 9.145 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.001092/0.001092, allocations: 90.58 kB / 267.1 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.275/0.275, allocations: 37.96 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.096e-05/4.114e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4814/0.5847, allocations: 97.6 MB / 0.5574 GB, free: 5.949 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003384/0.585, allocations: 95.94 kB / 0.5575 GB, free: 5.855 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04434/0.6294, allocations: 9.955 MB / 0.5672 GB, free: 11.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6294, allocations: 0 / 0.5672 GB, free: 11.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.6295, allocations: 8 kB / 0.5673 GB, free: 11.8 MB / 410.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.001356/0.6309, allocations: 0.5902 MB / 0.5678 GB, free: 11.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.6309, allocations: 8.031 kB / 0.5678 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.6311, allocations: 62.55 kB / 0.5679 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.6312, allocations: 47.47 kB / 0.5679 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002264/0.6335, allocations: 0.6153 MB / 0.5685 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.6335, allocations: 16.56 kB / 0.5686 GB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.981e-05/0.6336, allocations: 28 kB / 0.5686 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007971/0.6345, allocations: 323.1 kB / 0.5689 GB, free: 9.988 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.6345, allocations: 4 kB / 0.5689 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.383e-05/0.6346, allocations: 11.98 kB / 0.5689 GB, free: 9.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.6346, allocations: 8 kB / 0.5689 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005515/0.6352, allocations: 197.5 kB / 0.5691 GB, free: 9.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.6377, allocations: 1.494 MB / 0.5706 GB, free: 8.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005913/0.6383, allocations: 201.1 kB / 0.5708 GB, free: 7.949 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.6385, allocations: 75.48 kB / 0.5708 GB, free: 7.863 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.6385, allocations: 4 kB / 0.5708 GB, free: 7.859 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.6386, allocations: 34.56 kB / 0.5709 GB, free: 7.816 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 2.595e-06/0.6386, allocations: 0 / 0.5709 GB, free: 7.816 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.001519/0.6401, allocations: 0.6429 MB / 0.5715 GB, free: 7.117 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.119e-05/0.6403, allocations: 136.5 kB / 0.5716 GB, free: 6.953 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004566/0.6407, allocations: 271.6 kB / 0.5719 GB, free: 6.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.6408, allocations: 29.7 kB / 0.5719 GB, free: 6.645 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.641, allocations: 258.4 kB / 0.5722 GB, free: 6.391 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.1e-05/0.6411, allocations: 67.09 kB / 0.5722 GB, free: 6.324 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.813e-05/0.6411, allocations: 4 kB / 0.5722 GB, free: 6.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.6412, allocations: 326.9 kB / 0.5725 GB, free: 5.992 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.6414, allocations: 47.98 kB / 0.5726 GB, free: 5.945 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.6417, allocations: 145.5 kB / 0.5727 GB, free: 5.758 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.6419, allocations: 79 kB / 0.5728 GB, free: 5.684 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.6419, allocations: 4 kB / 0.5728 GB, free: 5.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000564/0.6425, allocations: 229.5 kB / 0.573 GB, free: 5.449 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.6425, allocations: 8 kB / 0.573 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.6426, allocations: 11.92 kB / 0.573 GB, free: 5.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.924e-05/0.6426, allocations: 7.953 kB / 0.573 GB, free: 5.422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006504/0.6433, allocations: 71.91 kB / 0.5731 GB, free: 5.352 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.6444, allocations: 1.286 MB / 0.5744 GB, free: 3.938 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.6448, allocations: 15.84 kB / 0.5744 GB, free: 3.922 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.6448, allocations: 16 kB / 0.5744 GB, free: 3.906 MB / 410.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 () * 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.000137/0.6449, allocations: 122.7 kB / 0.5745 GB, free: 3.781 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.6451, allocations: 35.75 kB / 0.5746 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005167/0.6456, allocations: 180.6 kB / 0.5747 GB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.6456, allocations: 7.953 kB / 0.5747 GB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.63e-05/0.6457, allocations: 4 kB / 0.5747 GB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.6457, allocations: 0 / 0.5747 GB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.6469, allocations: 0.5257 MB / 0.5752 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.6469, allocations: 0 / 0.5752 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/0.6474, allocations: 51.94 kB / 0.5753 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.6474, allocations: 3.953 kB / 0.5753 GB, free: 2.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.6475, allocations: 8 kB / 0.5753 GB, free: 2.902 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.6475, allocations: 0 / 0.5753 GB, free: 2.902 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6475, allocations: 0 / 0.5753 GB, free: 2.902 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000766/0.6483, allocations: 0.5235 MB / 0.5758 GB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.6484, allocations: 104.7 kB / 0.5759 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.736e-05/0.6485, allocations: 4 kB / 0.5759 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/0.6488, allocations: 8.031 kB / 0.5759 GB, free: 2.207 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.6489, allocations: 15.98 kB / 0.5759 GB, free: 2.191 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.6489, allocations: 8 kB / 0.576 GB, free: 2.184 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00034/0.6492, allocations: 214.2 kB / 0.5762 GB, free: 1.977 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6493, allocations: 0 / 0.5762 GB, free: 1.977 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006493/0.6499, allocations: 67.95 kB / 0.5762 GB, free: 1.91 MB / 410.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 () * 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.001359/0.6513, allocations: 1.312 MB / 0.5775 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006267/0.6519, allocations: 152.5 kB / 0.5777 GB, free: 420 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.652, allocations: 4.062 kB / 0.5777 GB, free: 416 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.6521, allocations: 67.88 kB / 0.5777 GB, free: 348 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008495/0.653, allocations: 73.16 kB / 0.5778 GB, free: 276 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.6554, allocations: 0.7239 MB / 0.5785 GB, free: 15.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005288/0.656, allocations: 0.8075 MB / 0.5793 GB, free: 14.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/0.6563, allocations: 115.4 kB / 0.5794 GB, free: 14.55 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6563, allocations: 3.938 kB / 0.5794 GB, free: 14.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.686/3.343, allocations: 6.401 MB / 0.5856 GB, free: 8.137 MB / 426.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)