Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.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.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",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.001012/0.001012, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.171/1.171, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0007836/0.0007836, allocations: 82.73 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1577/0.1577, allocations: 38.05 MB / 357.2 MB, free: 1.902 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000292/0.0002921, allocations: 12 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2423, allocations: 56.33 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.3682, allocations: 100.3 MB / 0.5671 GB, free: 2.129 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.3685, allocations: 95.95 kB / 0.5672 GB, free: 2.035 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0387/0.4072, allocations: 14.09 MB / 0.5809 GB, free: 3.797 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4073, allocations: 0 / 0.5809 GB, free: 3.797 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.722e-05/0.4074, allocations: 20 kB / 0.5809 GB, free: 3.777 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002148/0.4095, allocations: 0.9699 MB / 0.5819 GB, free: 2.758 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4096, allocations: 8.031 kB / 0.5819 GB, free: 2.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002417/0.4098, allocations: 102.5 kB / 0.582 GB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.4101, allocations: 75.11 kB / 0.5821 GB, free: 2.566 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002897/0.413, allocations: 1.126 MB / 0.5832 GB, free: 1.398 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.4131, allocations: 120.7 kB / 0.5833 GB, free: 1.266 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.4133, allocations: 59.91 kB / 0.5833 GB, free: 1.207 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.4146, allocations: 0.7906 MB / 0.5841 GB, free: 388 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.4146, allocations: 3.938 kB / 0.5841 GB, free: 384 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.515e-05/0.4147, allocations: 24 kB / 0.5841 GB, free: 360 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.4147, allocations: 15.95 kB / 0.5841 GB, free: 344 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.416, allocations: 0.7103 MB / 0.5848 GB, free: 15.62 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004174/0.4202, allocations: 2.746 MB / 0.5875 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.4218, allocations: 0.9119 MB / 0.5884 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.4218, allocations: 4.062 kB / 0.5884 GB, free: 11.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.4218, allocations: 38.56 kB / 0.5885 GB, free: 11.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 2.395e-06/0.4219, allocations: 0 / 0.5885 GB, free: 11.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.00357/0.4254, allocations: 1.984 MB / 0.5904 GB, free: 9.664 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.4255, allocations: 81.11 kB / 0.5905 GB, free: 9.566 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.4259, allocations: 373 kB / 0.5908 GB, free: 9.191 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.426, allocations: 33.7 kB / 0.5909 GB, free: 9.152 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.4262, allocations: 320.2 kB / 0.5912 GB, free: 8.836 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.4263, allocations: 130.1 kB / 0.5913 GB, free: 8.707 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.4263, allocations: 8 kB / 0.5913 GB, free: 8.699 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4265, allocations: 362.8 kB / 0.5916 GB, free: 8.336 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004523/0.4269, allocations: 245 kB / 0.5919 GB, free: 8.098 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.4274, allocations: 366.2 kB / 0.5922 GB, free: 7.695 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004832/0.4279, allocations: 279.5 kB / 0.5925 GB, free: 7.422 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4279, allocations: 0 / 0.5925 GB, free: 7.422 MB / 426.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001259/0.4292, allocations: 0.8036 MB / 0.5933 GB, free: 6.586 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.4292, allocations: 4.25 kB / 0.5933 GB, free: 6.582 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4293, allocations: 8 kB / 0.5933 GB, free: 6.574 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/0.4295, allocations: 65.67 kB / 0.5934 GB, free: 6.504 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.4309, allocations: 375.5 kB / 0.5937 GB, free: 6.137 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00545/0.4364, allocations: 6.178 MB / 0.5997 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/0.4368, allocations: 44.2 kB / 0.5998 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.4369, allocations: 20 kB / 0.5998 GB, free: 15.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003604/0.4373, allocations: 233.7 kB / 0.6 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.616e-05/0.4374, allocations: 51.39 kB / 0.6001 GB, free: 15.08 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.4387, allocations: 0.7387 MB / 0.6008 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.4387, allocations: 4 kB / 0.6008 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4387, allocations: 0 / 0.6008 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4387, allocations: 7.984 kB / 0.6008 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.4411, allocations: 1.529 MB / 0.6023 GB, free: 12.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4411, allocations: 0 / 0.6023 GB, free: 12.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.4427, allocations: 403.6 kB / 0.6027 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.4428, allocations: 61.67 kB / 0.6027 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.78e-05/0.4429, allocations: 15.98 kB / 0.6028 GB, free: 12.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001844/0.4447, allocations: 2.86 MB / 0.6056 GB, free: 9.066 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4448, allocations: 256 / 0.6056 GB, free: 9.066 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.4465, allocations: 1.182 MB / 0.6067 GB, free: 7.812 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.4466, allocations: 116.5 kB / 0.6068 GB, free: 7.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.664e-05/0.4467, allocations: 19.97 kB / 0.6068 GB, free: 7.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.447, allocations: 35.97 kB / 0.6069 GB, free: 7.625 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.865e-05/0.4471, allocations: 35.94 kB / 0.6069 GB, free: 7.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.4472, allocations: 16 kB / 0.6069 GB, free: 7.574 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002927/0.4475, allocations: 295 kB / 0.6072 GB, free: 7.289 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4475, allocations: 0 / 0.6072 GB, free: 7.289 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006242/0.4481, allocations: 144 kB / 0.6073 GB, free: 7.148 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * 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 (39): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002057/0.4502, allocations: 1.94 MB / 0.6092 GB, free: 5.137 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00222/0.4524, allocations: 1.064 MB / 0.6103 GB, free: 4.047 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4524, allocations: 0 / 0.6103 GB, free: 4.047 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00177/0.4542, allocations: 0.8215 MB / 0.6111 GB, free: 3.199 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000637/0.4549, allocations: 121.9 kB / 0.6112 GB, free: 3.078 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005973/0.4608, allocations: 6.087 MB / 0.6171 GB, free: 12.85 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.4613, allocations: 0.964 MB / 0.6181 GB, free: 11.86 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003366/0.4617, allocations: 96.55 kB / 0.6182 GB, free: 11.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002583/0.462, allocations: 199.4 kB / 0.6184 GB, free: 11.56 MB / 458.7 MB Notification: Performance of SimCode: time 5.31e-07/0.462, allocations: 0 / 0.6184 GB, free: 11.56 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.4881, allocations: 12.11 MB / 0.6302 GB, free: 15.52 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.4884, allocations: 227.6 kB / 0.6304 GB, free: 15.27 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/2.693, allocations: 0 / 0.6304 GB, free: 15.27 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat does not exist to compare? outputFormat=mat