Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.001185/0.001185, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.679/1.679, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009371/0.000937, allocations: 86.72 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1629/0.1629, allocations: 37.98 MB / 353.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.49e-05/3.492e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1259, allocations: 56.32 MB / 474.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.5833, allocations: 102.1 MB / 0.5628 GB, free: 108 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001811/0.5852, allocations: 0.6961 MB / 0.5635 GB, free: 15.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04043/0.6256, allocations: 15.14 MB / 0.5782 GB, free: 2.965 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.6257, allocations: 0 / 0.5782 GB, free: 2.965 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.189e-05/0.6258, allocations: 8 kB / 0.5782 GB, free: 2.957 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001402/0.6272, allocations: 0.7377 MB / 0.579 GB, free: 2.203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.6272, allocations: 12.03 kB / 0.579 GB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.852e-05/0.6274, allocations: 74.22 kB / 0.579 GB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.6275, allocations: 59.3 kB / 0.5791 GB, free: 2.074 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.629, allocations: 0.6976 MB / 0.5798 GB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.6291, allocations: 27.03 kB / 0.5798 GB, free: 1.457 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-05/0.6292, allocations: 43.77 kB / 0.5799 GB, free: 1.426 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007252/0.6299, allocations: 452 kB / 0.5803 GB, free: 1.055 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.6299, allocations: 7.938 kB / 0.5803 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.63, allocations: 16.88 kB / 0.5803 GB, free: 1.043 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.63, allocations: 12 kB / 0.5803 GB, free: 1.031 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.6305, allocations: 261.3 kB / 0.5806 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.6327, allocations: 1.868 MB / 0.5824 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.6332, allocations: 244.5 kB / 0.5826 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.6333, allocations: 81.64 kB / 0.5827 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.6333, allocations: 352 / 0.5827 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002617/0.6336, allocations: 188.6 kB / 0.5829 GB, free: 14.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.6336, allocations: 0 / 0.5829 GB, free: 14.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.001547/0.6352, allocations: 0.8361 MB / 0.5837 GB, free: 13.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/0.6353, allocations: 132.5 kB / 0.5838 GB, free: 13.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000408/0.6357, allocations: 352.1 kB / 0.5842 GB, free: 13.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.6357, allocations: 33.58 kB / 0.5842 GB, free: 13.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.6359, allocations: 264.5 kB / 0.5844 GB, free: 13.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.8e-05/0.636, allocations: 94.17 kB / 0.5845 GB, free: 13.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.353e-05/0.636, allocations: 7.812 kB / 0.5845 GB, free: 13.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.6362, allocations: 350.1 kB / 0.5849 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.6363, allocations: 82.61 kB / 0.585 GB, free: 12.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.6366, allocations: 211.1 kB / 0.5852 GB, free: 12.56 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.6368, allocations: 118.2 kB / 0.5853 GB, free: 12.47 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.6368, allocations: 0 / 0.5853 GB, free: 12.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007868/0.6376, allocations: 421.7 kB / 0.5857 GB, free: 12.13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.6376, allocations: 11.94 kB / 0.5857 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.6377, allocations: 8 kB / 0.5857 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004298/0.6381, allocations: 88.75 kB / 0.5858 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.6383, allocations: 75.59 kB / 0.5858 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/0.6408, allocations: 1.813 MB / 0.5876 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.641, allocations: 27.58 kB / 0.5876 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.668e-05/0.6411, allocations: 15.31 kB / 0.5877 GB, free: 10.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.6412, allocations: 128.5 kB / 0.5878 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.055e-05/0.6412, allocations: 47.5 kB / 0.5878 GB, free: 10.03 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000608/0.6419, allocations: 289.1 kB / 0.5881 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.6419, allocations: 0 / 0.5881 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.6419, allocations: 4 kB / 0.5881 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.6419, allocations: 7.938 kB / 0.5881 GB, free: 9.805 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.643, allocations: 0.7613 MB / 0.5889 GB, free: 9.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.643, allocations: 4 kB / 0.5889 GB, free: 9.145 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.6433, allocations: 50.84 kB / 0.5889 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002023/0.6435, allocations: 48.69 kB / 0.589 GB, free: 9.055 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.6435, allocations: 7.062 kB / 0.589 GB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.6448, allocations: 1.43 MB / 0.5904 GB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.6448, allocations: 0 / 0.5904 GB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007283/0.6456, allocations: 0.5095 MB / 0.5909 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001505/0.6457, allocations: 137.6 kB / 0.591 GB, free: 7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.674e-05/0.6458, allocations: 7.312 kB / 0.591 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.646, allocations: 19.73 kB / 0.591 GB, free: 6.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.6461, allocations: 19.16 kB / 0.591 GB, free: 6.965 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.6461, allocations: 11.94 kB / 0.591 GB, free: 6.953 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003127/0.6465, allocations: 279.8 kB / 0.5913 GB, free: 6.742 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6465, allocations: 0 / 0.5913 GB, free: 6.742 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005336/0.647, allocations: 122.5 kB / 0.5914 GB, free: 6.637 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001849/0.6489, allocations: 1.468 MB / 0.5929 GB, free: 5.281 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007916/0.6497, allocations: 387.5 kB / 0.5932 GB, free: 4.961 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6497, allocations: 4.125 kB / 0.5932 GB, free: 4.957 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003701/0.6501, allocations: 236.1 kB / 0.5935 GB, free: 4.746 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005974/0.6507, allocations: 122.8 kB / 0.5936 GB, free: 4.648 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.6525, allocations: 0.926 MB / 0.5945 GB, free: 3.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.6529, allocations: 0.876 MB / 0.5953 GB, free: 2.879 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002357/0.6532, allocations: 67.34 kB / 0.5954 GB, free: 2.812 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.6534, allocations: 159.2 kB / 0.5956 GB, free: 2.762 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.6534, allocations: 0 / 0.5956 GB, free: 2.762 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.6798, allocations: 10.3 MB / 0.6056 GB, free: 8.441 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.68, allocations: 224.5 kB / 0.6058 GB, free: 8.195 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.423/3.103, allocations: 7.938 kB / 0.6058 GB, free: 8.188 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat does not exist to compare? outputFormat=mat