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.001648/0.001648, allocations: 182.8 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.925/1.925, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001083/0.001083, allocations: 98.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2493/0.2493, allocations: 38.05 MB / 356.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004591/0.0004591, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1044, allocations: 56.33 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.468/0.5725, allocations: 100.3 MB / 0.5658 GB, free: 15.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.5728, allocations: 96.89 kB / 0.5659 GB, free: 15.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05309/0.6259, allocations: 13.03 MB / 0.5786 GB, free: 4.172 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.626, allocations: 0 / 0.5786 GB, free: 4.172 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.3e-05/0.6261, allocations: 16 kB / 0.5787 GB, free: 4.156 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00177/0.6278, allocations: 0.728 MB / 0.5794 GB, free: 3.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.6279, allocations: 11.97 kB / 0.5794 GB, free: 3.398 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.628, allocations: 88.77 kB / 0.5795 GB, free: 3.328 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.6282, allocations: 59.3 kB / 0.5795 GB, free: 3.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002192/0.6304, allocations: 0.6755 MB / 0.5802 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.6306, allocations: 61.14 kB / 0.5802 GB, free: 2.617 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.6307, allocations: 53.11 kB / 0.5803 GB, free: 2.578 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.6319, allocations: 0.4996 MB / 0.5808 GB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.632, allocations: 3.938 kB / 0.5808 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.941e-05/0.6321, allocations: 18.31 kB / 0.5808 GB, free: 2.164 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.6321, allocations: 12 kB / 0.5808 GB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.6331, allocations: 341.6 kB / 0.5811 GB, free: 1.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003563/0.6367, allocations: 1.998 MB / 0.5831 GB, free: 108 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007173/0.6375, allocations: 226.4 kB / 0.5833 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.6375, allocations: 4.062 kB / 0.5833 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.6376, allocations: 34.25 kB / 0.5833 GB, free: 15.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 2.665e-06/0.6376, allocations: 0 / 0.5833 GB, free: 15.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.002647/0.6402, allocations: 0.8631 MB / 0.5842 GB, free: 15.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.6403, allocations: 106.8 kB / 0.5843 GB, free: 14.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004771/0.6408, allocations: 294.5 kB / 0.5846 GB, free: 14.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.6409, allocations: 28.95 kB / 0.5846 GB, free: 14.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002177/0.6411, allocations: 318.7 kB / 0.5849 GB, free: 14.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.771e-05/0.6412, allocations: 80.83 kB / 0.585 GB, free: 14.32 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.41e-05/0.6412, allocations: 6.812 kB / 0.585 GB, free: 14.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.6414, allocations: 333 kB / 0.5853 GB, free: 14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.6417, allocations: 86.39 kB / 0.5854 GB, free: 13.94 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004717/0.6422, allocations: 216.5 kB / 0.5856 GB, free: 13.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.6435, allocations: 314 kB / 0.5859 GB, free: 13.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.6436, allocations: 4 kB / 0.5859 GB, free: 13.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001384/0.645, allocations: 397.5 kB / 0.5863 GB, free: 13.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.645, allocations: 10.66 kB / 0.5863 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.645, allocations: 4.406 kB / 0.5863 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005052/0.6455, allocations: 90.53 kB / 0.5864 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.646, allocations: 61.97 kB / 0.5864 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002906/0.6489, allocations: 1.81 MB / 0.5882 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004171/0.6494, allocations: 21.42 kB / 0.5882 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/0.6494, allocations: 15.19 kB / 0.5882 GB, free: 11.21 MB / 394.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 () * Number of clocked 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.0003654/0.6498, allocations: 195.1 kB / 0.5884 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-05/0.6499, allocations: 31.62 kB / 0.5885 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.844e-05/0.65, allocations: 49.11 kB / 0.5885 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.65, allocations: 7.953 kB / 0.5885 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.65, allocations: 4 kB / 0.5885 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.6501, allocations: 3.984 kB / 0.5885 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.6519, allocations: 0.78 MB / 0.5893 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.6519, allocations: 0 / 0.5893 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004834/0.6524, allocations: 47.91 kB / 0.5893 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.6526, allocations: 27.47 kB / 0.5894 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.6526, allocations: 3.562 kB / 0.5894 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.6538, allocations: 1.292 MB / 0.5906 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.6538, allocations: 0 / 0.5906 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.6551, allocations: 0.5506 MB / 0.5912 GB, free: 8.312 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.6553, allocations: 130.2 kB / 0.5913 GB, free: 8.172 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.073e-05/0.6554, allocations: 3.438 kB / 0.5913 GB, free: 8.172 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003385/0.6557, allocations: 10.88 kB / 0.5913 GB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.6558, allocations: 27.03 kB / 0.5913 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.6559, allocations: 4 kB / 0.5913 GB, free: 8.137 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003638/0.6562, allocations: 231.4 kB / 0.5915 GB, free: 7.957 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6563, allocations: 0 / 0.5915 GB, free: 7.957 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007468/0.657, allocations: 94.69 kB / 0.5916 GB, free: 7.871 MB / 394.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 () * Number of clocked 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.001773/0.6588, allocations: 1.318 MB / 0.5929 GB, free: 6.594 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.6601, allocations: 382.8 kB / 0.5933 GB, free: 6.273 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.6601, allocations: 0 / 0.5933 GB, free: 6.273 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005537/0.6606, allocations: 217 kB / 0.5935 GB, free: 6.074 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008596/0.6615, allocations: 101.5 kB / 0.5936 GB, free: 5.996 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007162/0.6687, allocations: 5.384 MB / 0.5988 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005932/0.6693, allocations: 0.8494 MB / 0.5997 GB, free: 15.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.6696, allocations: 137.4 kB / 0.5998 GB, free: 15.87 MB / 410.7 MB Notification: Performance of SimCode: time 8.11e-07/0.6696, allocations: 0 / 0.5998 GB, free: 15.87 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.849/3.519, allocations: 8.926 MB / 0.6085 GB, free: 7.055 MB / 410.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)