Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.DCmotor_pm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001562/0.001562, allocations: 186.1 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 1.912/1.912, allocations: 205.2 MB / 218.9 MB, free: 9.133 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.00113/0.00113, allocations: 92.45 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2728/0.2728, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.775e-05/3.786e-05, allocations: 0 / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4939/0.5958, allocations: 100.2 MB / 0.56 GB, free: 3.465 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003309/0.5962, allocations: 87.95 kB / 0.56 GB, free: 3.379 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05658/0.6528, allocations: 13.04 MB / 0.5728 GB, free: 6.203 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6528, allocations: 0 / 0.5728 GB, free: 6.203 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.613e-05/0.6529, allocations: 19.94 kB / 0.5728 GB, free: 6.184 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001688/0.6546, allocations: 0.6722 MB / 0.5734 GB, free: 5.461 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.6546, allocations: 16.02 kB / 0.5735 GB, free: 5.445 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.6548, allocations: 78.53 kB / 0.5735 GB, free: 5.359 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.655, allocations: 63.3 kB / 0.5736 GB, free: 5.297 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.6573, allocations: 0.6624 MB / 0.5742 GB, free: 4.594 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.6575, allocations: 66.69 kB / 0.5743 GB, free: 4.523 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.6577, allocations: 44 kB / 0.5744 GB, free: 4.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.6589, allocations: 498.2 kB / 0.5748 GB, free: 3.949 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.659, allocations: 4 kB / 0.5748 GB, free: 3.945 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.78e-05/0.659, allocations: 16 kB / 0.5748 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.6591, allocations: 12 kB / 0.5749 GB, free: 3.918 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008752/0.66, allocations: 310.9 kB / 0.5752 GB, free: 3.613 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003902/0.6639, allocations: 1.998 MB / 0.5771 GB, free: 1.496 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005088/0.6644, allocations: 207.7 kB / 0.5773 GB, free: 1.266 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.6647, allocations: 85.42 kB / 0.5774 GB, free: 1.176 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.6647, allocations: 7.938 kB / 0.5774 GB, free: 1.168 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.6647, allocations: 38.56 kB / 0.5774 GB, free: 1.121 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.685e-06/0.6648, allocations: 0 / 0.5774 GB, free: 1.121 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001927/0.6667, allocations: 0.7377 MB / 0.5781 GB, free: 328 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.6668, allocations: 106.8 kB / 0.5782 GB, free: 196 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005026/0.6673, allocations: 287.5 kB / 0.5785 GB, free: 15.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.6674, allocations: 33.77 kB / 0.5786 GB, free: 15.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002418/0.6676, allocations: 318 kB / 0.5789 GB, free: 15.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.6677, allocations: 82.83 kB / 0.5789 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/0.6678, allocations: 12 kB / 0.5789 GB, free: 15.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.6679, allocations: 318.8 kB / 0.5793 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.6682, allocations: 71.98 kB / 0.5793 GB, free: 15.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.6685, allocations: 205.1 kB / 0.5795 GB, free: 14.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.6695, allocations: 293.9 kB / 0.5798 GB, free: 14.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6696, allocations: 0 / 0.5798 GB, free: 14.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001143/0.6707, allocations: 377.2 kB / 0.5802 GB, free: 14.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.6708, allocations: 4 kB / 0.5802 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.6708, allocations: 8 kB / 0.5802 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005073/0.6713, allocations: 76.8 kB / 0.5802 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.6718, allocations: 68.16 kB / 0.5803 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002995/0.6748, allocations: 1.78 MB / 0.582 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004355/0.6753, allocations: 23.89 kB / 0.5821 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.6753, allocations: 16 kB / 0.5821 GB, free: 12.02 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001645/0.6755, allocations: 135.7 kB / 0.5822 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.6756, allocations: 31.62 kB / 0.5822 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.6758, allocations: 39.08 kB / 0.5823 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.6758, allocations: 7.953 kB / 0.5823 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.6758, allocations: 0 / 0.5823 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/0.6758, allocations: 7.938 kB / 0.5823 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.6775, allocations: 0.7649 MB / 0.583 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.6775, allocations: 0 / 0.583 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005273/0.6781, allocations: 51.91 kB / 0.5831 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001352/0.6782, allocations: 20.86 kB / 0.5831 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.6783, allocations: 8.016 kB / 0.5831 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.6795, allocations: 1.276 MB / 0.5844 GB, free: 9.461 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.6796, allocations: 8.188 kB / 0.5844 GB, free: 9.453 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009357/0.6805, allocations: 0.5096 MB / 0.5849 GB, free: 8.898 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001881/0.6807, allocations: 116.7 kB / 0.585 GB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.6808, allocations: 4 kB / 0.585 GB, free: 8.762 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.6812, allocations: 16.08 kB / 0.585 GB, free: 8.746 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.064e-05/0.6813, allocations: 19.92 kB / 0.585 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.6813, allocations: 7.984 kB / 0.585 GB, free: 8.719 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004047/0.6817, allocations: 218.2 kB / 0.5852 GB, free: 8.504 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6817, allocations: 0 / 0.5852 GB, free: 8.504 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007361/0.6825, allocations: 104 kB / 0.5853 GB, free: 8.402 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001451/0.6839, allocations: 1.276 MB / 0.5866 GB, free: 7.078 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.685, allocations: 351.8 kB / 0.5869 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.685, allocations: 0 / 0.5869 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004128/0.6854, allocations: 202.8 kB / 0.5871 GB, free: 6.512 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008936/0.6864, allocations: 88.19 kB / 0.5872 GB, free: 6.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.6889, allocations: 0.8239 MB / 0.588 GB, free: 5.551 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.6895, allocations: 0.8545 MB / 0.5888 GB, free: 4.668 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/0.6899, allocations: 139.4 kB / 0.589 GB, free: 4.531 MB / 426.7 MB Notification: Performance of SimCode: time 1.283e-06/0.6899, allocations: 0 / 0.589 GB, free: 4.531 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.826/3.516, allocations: 8.873 MB / 0.5976 GB, free: 11.64 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)