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.002371/0.002371, allocations: 186 kB / 13.19 MB, free: 2.125 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.107/2.107, allocations: 205.2 MB / 218.9 MB, free: 9.223 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.001462/0.001462, allocations: 89.94 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2581/0.2581, allocations: 37.97 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.321e-05/3.324e-05, allocations: 4 kB / 416.9 MB, free: 41.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4682/0.5705, allocations: 99.44 MB / 0.5592 GB, free: 4.227 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.5709, allocations: 87.95 kB / 0.5593 GB, free: 4.141 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04854/0.6194, allocations: 11.41 MB / 0.5705 GB, free: 8.598 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.6195, allocations: 8 kB / 0.5705 GB, free: 8.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.057e-05/0.6195, allocations: 11.94 kB / 0.5705 GB, free: 8.578 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001503/0.621, allocations: 0.6215 MB / 0.5711 GB, free: 7.914 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.6211, allocations: 12.03 kB / 0.5711 GB, free: 7.902 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001227/0.6212, allocations: 70.53 kB / 0.5712 GB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.6214, allocations: 51.39 kB / 0.5712 GB, free: 7.773 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.6232, allocations: 0.5532 MB / 0.5717 GB, free: 7.184 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.6233, allocations: 58.48 kB / 0.5718 GB, free: 7.117 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.6235, allocations: 36 kB / 0.5718 GB, free: 7.082 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.6245, allocations: 427 kB / 0.5722 GB, free: 6.621 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.6246, allocations: 0 / 0.5722 GB, free: 6.621 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.662e-05/0.6247, allocations: 12 kB / 0.5723 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.6247, allocations: 8 kB / 0.5723 GB, free: 6.602 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007454/0.6255, allocations: 254 kB / 0.5725 GB, free: 6.352 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00362/0.6291, allocations: 1.873 MB / 0.5743 GB, free: 4.355 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004042/0.6295, allocations: 171.7 kB / 0.5745 GB, free: 4.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.6297, allocations: 73.83 kB / 0.5746 GB, free: 4.082 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.6298, allocations: 0 / 0.5746 GB, free: 4.082 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.6298, allocations: 42.5 kB / 0.5746 GB, free: 4.031 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 1.954e-06/0.6298, allocations: 0 / 0.5746 GB, free: 4.031 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001592/0.6314, allocations: 0.6397 MB / 0.5752 GB, free: 3.336 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/0.6315, allocations: 106.8 kB / 0.5753 GB, free: 3.207 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004991/0.6321, allocations: 278.5 kB / 0.5756 GB, free: 2.926 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.487e-05/0.6321, allocations: 29.7 kB / 0.5756 GB, free: 2.891 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/0.6324, allocations: 298 kB / 0.5759 GB, free: 2.594 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/0.6325, allocations: 67.09 kB / 0.576 GB, free: 2.527 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.103e-05/0.6325, allocations: 4 kB / 0.576 GB, free: 2.523 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6327, allocations: 330.9 kB / 0.5763 GB, free: 2.191 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.6329, allocations: 64.66 kB / 0.5764 GB, free: 2.125 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.6332, allocations: 193.8 kB / 0.5765 GB, free: 1.875 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.6335, allocations: 100.8 kB / 0.5766 GB, free: 1.777 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.6335, allocations: 4 kB / 0.5766 GB, free: 1.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007443/0.6343, allocations: 303.7 kB / 0.5769 GB, free: 1.473 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.6343, allocations: 8.562 kB / 0.5769 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.6344, allocations: 7.938 kB / 0.577 GB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.6344, allocations: 15.98 kB / 0.577 GB, free: 1.441 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005815/0.635, allocations: 75.91 kB / 0.577 GB, free: 1.367 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.733e-05/0.635, allocations: 7.938 kB / 0.577 GB, free: 1.359 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003678/0.6354, allocations: 15.98 kB / 0.5771 GB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.6354, allocations: 16 kB / 0.5771 GB, free: 1.328 MB / 410.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.6356, allocations: 126.7 kB / 0.5772 GB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.902e-05/0.6357, allocations: 35.58 kB / 0.5772 GB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005505/0.6363, allocations: 188.4 kB / 0.5774 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.6363, allocations: 3.938 kB / 0.5774 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.128e-06/0.6363, allocations: 11.98 kB / 0.5774 GB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.6363, allocations: 0 / 0.5774 GB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.6376, allocations: 0.6134 MB / 0.578 GB, free: 292 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.6377, allocations: 0 / 0.578 GB, free: 292 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004855/0.6382, allocations: 48 kB / 0.5781 GB, free: 244 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.26e-05/0.6382, allocations: 4 kB / 0.5781 GB, free: 240 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.6382, allocations: 0 / 0.5781 GB, free: 240 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.6383, allocations: 4 kB / 0.5781 GB, free: 236 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.6383, allocations: 7.922 kB / 0.5781 GB, free: 228 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007893/0.6391, allocations: 477 kB / 0.5785 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.6392, allocations: 108.8 kB / 0.5786 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.454e-05/0.6393, allocations: 4 kB / 0.5786 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.6396, allocations: 4 kB / 0.5787 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.631e-05/0.6397, allocations: 19.94 kB / 0.5787 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.6397, allocations: 15.92 kB / 0.5787 GB, free: 15.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003388/0.6401, allocations: 214.2 kB / 0.5789 GB, free: 15.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6401, allocations: 0 / 0.5789 GB, free: 15.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006144/0.6407, allocations: 80 kB / 0.579 GB, free: 15.26 MB / 426.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.001239/0.642, allocations: 1.23 MB / 0.5802 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005369/0.6425, allocations: 188.2 kB / 0.5803 GB, free: 13.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.6426, allocations: 1.125 kB / 0.5803 GB, free: 13.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.6428, allocations: 79.77 kB / 0.5804 GB, free: 13.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007828/0.6436, allocations: 81.3 kB / 0.5805 GB, free: 13.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.6461, allocations: 0.8095 MB / 0.5813 GB, free: 12.78 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/0.6467, allocations: 0.8226 MB / 0.5821 GB, free: 11.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.6469, allocations: 126.2 kB / 0.5822 GB, free: 11.81 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/0.647, allocations: 0 / 0.5822 GB, free: 11.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.632/3.279, allocations: 6.506 MB / 0.5886 GB, free: 5.301 MB / 426.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)