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.002238/0.002238, allocations: 182.3 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 1.999/1.999, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001134/0.001133, allocations: 94.83 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.268/0.268, allocations: 38.05 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006033/0.0006035, allocations: 15.98 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1067, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4785/0.5852, allocations: 99.52 MB / 0.5651 GB, free: 15.69 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003344/0.5856, allocations: 95.67 kB / 0.5652 GB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04896/0.6345, allocations: 11.42 MB / 0.5763 GB, free: 5.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6346, allocations: 448 / 0.5763 GB, free: 5.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.256e-05/0.6346, allocations: 11.94 kB / 0.5763 GB, free: 5.918 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001657/0.6363, allocations: 0.6704 MB / 0.577 GB, free: 5.227 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.6364, allocations: 8.031 kB / 0.577 GB, free: 5.219 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.6365, allocations: 73.91 kB / 0.5771 GB, free: 5.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.6366, allocations: 51.47 kB / 0.5771 GB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.6385, allocations: 0.5655 MB / 0.5777 GB, free: 4.602 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.6387, allocations: 54.89 kB / 0.5777 GB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.499e-05/0.6388, allocations: 40.28 kB / 0.5778 GB, free: 4.527 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.6399, allocations: 440.2 kB / 0.5782 GB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.64, allocations: 3.562 kB / 0.5782 GB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.453e-05/0.64, allocations: 14.69 kB / 0.5782 GB, free: 4.156 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.6401, allocations: 12 kB / 0.5782 GB, free: 4.145 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008886/0.641, allocations: 269.3 kB / 0.5785 GB, free: 3.965 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004464/0.6455, allocations: 1.875 MB / 0.5803 GB, free: 2.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.6461, allocations: 189.2 kB / 0.5805 GB, free: 2.059 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.6461, allocations: 4.062 kB / 0.5805 GB, free: 2.055 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.6462, allocations: 33.56 kB / 0.5805 GB, free: 2.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 2.344e-06/0.6462, allocations: 0 / 0.5805 GB, free: 2.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.00216/0.6484, allocations: 0.7329 MB / 0.5812 GB, free: 1.336 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.188e-05/0.6485, allocations: 106.8 kB / 0.5813 GB, free: 1.207 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004843/0.649, allocations: 267 kB / 0.5816 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.449e-05/0.649, allocations: 33.8 kB / 0.5816 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.6493, allocations: 301.7 kB / 0.5819 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.88e-05/0.6494, allocations: 70.75 kB / 0.582 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.172e-05/0.6494, allocations: 3.938 kB / 0.582 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6496, allocations: 325.8 kB / 0.5823 GB, free: 324 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.6499, allocations: 72.25 kB / 0.5824 GB, free: 272 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003772/0.6503, allocations: 198 kB / 0.5826 GB, free: 44 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.6507, allocations: 117 kB / 0.5827 GB, free: 15.97 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.6507, allocations: 4 kB / 0.5827 GB, free: 15.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008859/0.6516, allocations: 320 kB / 0.583 GB, free: 15.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.6516, allocations: 11.95 kB / 0.583 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.6516, allocations: 4 kB / 0.583 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/0.6517, allocations: 8 kB / 0.583 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005737/0.6523, allocations: 79.83 kB / 0.5831 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/0.6523, allocations: 8.344 kB / 0.5831 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003555/0.6527, allocations: 19.19 kB / 0.5831 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.6527, allocations: 15.81 kB / 0.5831 GB, free: 15.59 MB / 394.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): 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.0003527/0.6531, allocations: 177.7 kB / 0.5833 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.6532, allocations: 31.62 kB / 0.5833 GB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006758/0.6539, allocations: 204.2 kB / 0.5835 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.6539, allocations: 15.98 kB / 0.5835 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.6539, allocations: 0 / 0.5835 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.654, allocations: 0 / 0.5835 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.6555, allocations: 0.6395 MB / 0.5842 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.6555, allocations: 3.938 kB / 0.5842 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.656, allocations: 44 kB / 0.5842 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.656, allocations: 4 kB / 0.5842 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.656, allocations: 2.938 kB / 0.5842 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.656, allocations: 4 kB / 0.5842 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.6561, allocations: 0 / 0.5842 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.6571, allocations: 0.4907 MB / 0.5847 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.6573, allocations: 104.7 kB / 0.5848 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/0.6573, allocations: 2.938 kB / 0.5848 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/0.6577, allocations: 11.03 kB / 0.5848 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.545e-05/0.6577, allocations: 19.94 kB / 0.5848 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.6578, allocations: 6.625 kB / 0.5848 GB, free: 14 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003607/0.6581, allocations: 213.7 kB / 0.585 GB, free: 13.82 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6581, allocations: 3.938 kB / 0.585 GB, free: 13.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006455/0.6588, allocations: 85.75 kB / 0.5851 GB, free: 13.75 MB / 394.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 () * 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.001549/0.6604, allocations: 1.251 MB / 0.5863 GB, free: 12.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007399/0.6611, allocations: 198.3 kB / 0.5865 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.6612, allocations: 0 / 0.5865 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.6615, allocations: 84.72 kB / 0.5866 GB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000846/0.6623, allocations: 88.88 kB / 0.5867 GB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006559/0.6689, allocations: 5.013 MB / 0.5916 GB, free: 7.367 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.6695, allocations: 0.8242 MB / 0.5924 GB, free: 6.527 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.6698, allocations: 125.4 kB / 0.5925 GB, free: 6.488 MB / 394.7 MB Notification: Performance of SimCode: time 1.392e-06/0.6698, allocations: 0 / 0.5925 GB, free: 6.488 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.567/3.237, allocations: 6.543 MB / 0.5989 GB, free: 48 kB / 394.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)