Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.002082/0.002082, allocations: 189 kB / 8.013 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.296/2.296, allocations: 205.3 MB / 213.7 MB, free: 1.738 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.001091/0.001091, allocations: 82.7 kB / 261.8 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2638/0.2638, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.597e-05/2.586e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.154, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6334/0.7875, allocations: 98.77 MB / 0.5518 GB, free: 9.754 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.7879, allocations: 96.2 kB / 0.5519 GB, free: 9.734 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04351/0.8314, allocations: 11.28 MB / 0.5629 GB, free: 2.977 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.8315, allocations: 0 / 0.5629 GB, free: 2.977 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.508e-05/0.8315, allocations: 8 kB / 0.5629 GB, free: 2.969 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001251/0.8328, allocations: 0.6272 MB / 0.5635 GB, free: 2.324 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.8328, allocations: 8.031 kB / 0.5635 GB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.833, allocations: 55.39 kB / 0.5636 GB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/0.8347, allocations: 0.5451 MB / 0.5641 GB, free: 1.789 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.8348, allocations: 50.98 kB / 0.5642 GB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.639e-05/0.8349, allocations: 23.19 kB / 0.5642 GB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005936/0.8355, allocations: 220.2 kB / 0.5644 GB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006918/0.8362, allocations: 369 kB / 0.5647 GB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.8362, allocations: 4 kB / 0.5648 GB, free: 1.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.607e-05/0.8363, allocations: 3.984 kB / 0.5648 GB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.8363, allocations: 11.94 kB / 0.5648 GB, free: 1.234 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.8392, allocations: 1.798 MB / 0.5665 GB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003429/0.8396, allocations: 164.2 kB / 0.5667 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.8398, allocations: 62.77 kB / 0.5667 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.8398, allocations: 4 kB / 0.5667 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.8399, allocations: 33.94 kB / 0.5668 GB, free: 15.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 3.666e-06/0.8399, allocations: 0 / 0.5668 GB, free: 15.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001495/0.8414, allocations: 0.6178 MB / 0.5674 GB, free: 14.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.8415, allocations: 106.8 kB / 0.5675 GB, free: 14.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/0.8419, allocations: 237.7 kB / 0.5677 GB, free: 14.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.8419, allocations: 25.7 kB / 0.5677 GB, free: 14.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.8421, allocations: 299.2 kB / 0.568 GB, free: 14.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.357e-05/0.8422, allocations: 68.53 kB / 0.5681 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/0.8423, allocations: 4.062 kB / 0.5681 GB, free: 14.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.8424, allocations: 321 kB / 0.5684 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.8426, allocations: 58.72 kB / 0.5684 GB, free: 13.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.8429, allocations: 189.7 kB / 0.5686 GB, free: 13.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.8431, allocations: 101.3 kB / 0.5687 GB, free: 13.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.8432, allocations: 0 / 0.5687 GB, free: 13.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006476/0.8438, allocations: 260.6 kB / 0.569 GB, free: 13.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.8439, allocations: 8 kB / 0.569 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.8439, allocations: 4 kB / 0.569 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.465e-05/0.8439, allocations: 12.52 kB / 0.569 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005801/0.8445, allocations: 78.91 kB / 0.5691 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.8446, allocations: 15.92 kB / 0.5691 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003402/0.8449, allocations: 4 kB / 0.5691 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.845, allocations: 15.12 kB / 0.5691 GB, free: 13.07 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001324/0.8451, allocations: 112.9 kB / 0.5692 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004451/0.8456, allocations: 171.8 kB / 0.5694 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.812e-05/0.8457, allocations: 27.73 kB / 0.5694 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004878/0.8462, allocations: 180.7 kB / 0.5696 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.8462, allocations: 3.938 kB / 0.5696 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.8462, allocations: 4 kB / 0.5696 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.8462, allocations: 0 / 0.5696 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.8474, allocations: 0.5428 MB / 0.5701 GB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.8474, allocations: 4 kB / 0.5701 GB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004601/0.8479, allocations: 44 kB / 0.5702 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.8479, allocations: 0 / 0.5702 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.8479, allocations: 7.312 kB / 0.5702 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.848, allocations: 0 / 0.5702 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.848, allocations: 7.938 kB / 0.5702 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007007/0.8487, allocations: 463.3 kB / 0.5706 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.8488, allocations: 104.7 kB / 0.5707 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.937e-05/0.8489, allocations: 4 kB / 0.5707 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.8492, allocations: 4 kB / 0.5707 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/0.8493, allocations: 11.94 kB / 0.5707 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.8493, allocations: 10.94 kB / 0.5707 GB, free: 11.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002614/0.8496, allocations: 183.3 kB / 0.5709 GB, free: 11.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.8496, allocations: 0 / 0.5709 GB, free: 11.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006463/0.8503, allocations: 71.88 kB / 0.571 GB, free: 11.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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.001183/0.8515, allocations: 1.22 MB / 0.5722 GB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004839/0.852, allocations: 172.1 kB / 0.5723 GB, free: 9.988 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.852, allocations: 0 / 0.5723 GB, free: 9.988 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.8522, allocations: 69.05 kB / 0.5724 GB, free: 9.938 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007651/0.853, allocations: 67.72 kB / 0.5725 GB, free: 9.887 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.8554, allocations: 0.7784 MB / 0.5732 GB, free: 9.113 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.856, allocations: 0.8288 MB / 0.574 GB, free: 8.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.8563, allocations: 114 kB / 0.5742 GB, free: 8.238 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.8563, allocations: 3.938 kB / 0.5742 GB, free: 8.234 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.587/3.443, allocations: 6.182 MB / 0.5802 GB, free: 2.148 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)