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.001441/0.001441, allocations: 180.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.3 MB / 213.7 MB, free: 1.723 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 78.39 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2587/0.2587, allocations: 38 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.201e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4859/0.5934, allocations: 96.94 MB / 0.55 GB, free: 9.941 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5937, allocations: 88.8 kB / 0.5501 GB, free: 9.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03971/0.6334, allocations: 9.822 MB / 0.5597 GB, free: 5.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.6334, allocations: 0 / 0.5597 GB, free: 5.305 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.431e-05/0.6335, allocations: 12 kB / 0.5597 GB, free: 5.293 MB / 362.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.001157/0.6347, allocations: 0.5883 MB / 0.5603 GB, free: 4.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.6347, allocations: 8.031 kB / 0.5603 GB, free: 4.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.6349, allocations: 43.48 kB / 0.5603 GB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.6369, allocations: 0.6169 MB / 0.5609 GB, free: 4.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.637, allocations: 8.75 kB / 0.5609 GB, free: 4.082 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.303e-05/0.6371, allocations: 16 kB / 0.5609 GB, free: 4.066 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004648/0.6376, allocations: 166.7 kB / 0.5611 GB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005184/0.6381, allocations: 303.4 kB / 0.5614 GB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.6381, allocations: 0 / 0.5614 GB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.6382, allocations: 0 / 0.5614 GB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.6382, allocations: 11.95 kB / 0.5614 GB, free: 3.672 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.64, allocations: 1.427 MB / 0.5628 GB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.6405, allocations: 186.1 kB / 0.563 GB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.6407, allocations: 71.73 kB / 0.563 GB, free: 2.066 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.6407, allocations: 4 kB / 0.563 GB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.6408, allocations: 33.38 kB / 0.5631 GB, free: 2.023 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 4.058e-06/0.6408, allocations: 4 kB / 0.5631 GB, free: 2.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.001261/0.6421, allocations: 0.6084 MB / 0.5637 GB, free: 1.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.6421, allocations: 136.5 kB / 0.5638 GB, free: 1.246 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002949/0.6424, allocations: 232.2 kB / 0.564 GB, free: 1.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.6425, allocations: 25.7 kB / 0.5641 GB, free: 1.016 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.6426, allocations: 265.3 kB / 0.5643 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.325e-05/0.6427, allocations: 61.97 kB / 0.5644 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.253e-05/0.6427, allocations: 0 / 0.5644 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.274e-05/0.6428, allocations: 328.9 kB / 0.5647 GB, free: 428 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.6429, allocations: 43.92 kB / 0.5647 GB, free: 400 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.643, allocations: 146.1 kB / 0.5649 GB, free: 228 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.6432, allocations: 67.09 kB / 0.5649 GB, free: 180 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.6432, allocations: 0 / 0.5649 GB, free: 180 kB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004251/0.6437, allocations: 206.9 kB / 0.5651 GB, free: 0 / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.69e-05/0.6438, allocations: 4.484 kB / 0.5651 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.6438, allocations: 11.94 kB / 0.5651 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.6438, allocations: 8 kB / 0.5651 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006317/0.6445, allocations: 75.05 kB / 0.5652 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.6456, allocations: 1.23 MB / 0.5664 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.6459, allocations: 7.953 kB / 0.5664 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.646, allocations: 14.88 kB / 0.5664 GB, free: 14.56 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 () * 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.0001206/0.6461, allocations: 108.4 kB / 0.5665 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004204/0.6465, allocations: 157 kB / 0.5667 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.6466, allocations: 31.75 kB / 0.5667 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004423/0.6471, allocations: 171.6 kB / 0.5669 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.6471, allocations: 3.953 kB / 0.5669 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.6471, allocations: 8 kB / 0.5669 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.6472, allocations: 0 / 0.5669 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.6482, allocations: 499.2 kB / 0.5674 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.6482, allocations: 0 / 0.5674 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.6486, allocations: 44.02 kB / 0.5674 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.46e-05/0.6487, allocations: 0 / 0.5674 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.6487, allocations: 7.953 kB / 0.5674 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.6487, allocations: 0 / 0.5674 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.6487, allocations: 0 / 0.5674 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006647/0.6494, allocations: 0.5058 MB / 0.5679 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.6495, allocations: 104.7 kB / 0.568 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.6496, allocations: 48 / 0.568 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.6499, allocations: 7.984 kB / 0.568 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.65, allocations: 11.42 kB / 0.568 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/0.65, allocations: 8 kB / 0.568 GB, free: 13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002443/0.6502, allocations: 185.4 kB / 0.5682 GB, free: 12.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6503, allocations: 0 / 0.5682 GB, free: 12.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006413/0.6509, allocations: 52 kB / 0.5683 GB, free: 12.8 MB / 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 () * 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.001195/0.6521, allocations: 1.284 MB / 0.5695 GB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005697/0.6527, allocations: 143.4 kB / 0.5697 GB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.6527, allocations: 192 / 0.5697 GB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.6529, allocations: 61.62 kB / 0.5697 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007967/0.6537, allocations: 63.34 kB / 0.5698 GB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.6559, allocations: 0.6868 MB / 0.5704 GB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.6565, allocations: 0.8102 MB / 0.5712 GB, free: 9.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.6567, allocations: 112.1 kB / 0.5713 GB, free: 9.797 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6568, allocations: 0 / 0.5713 GB, free: 9.797 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.636/3.293, allocations: 6.136 MB / 0.5773 GB, free: 3.727 MB / 378.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)