Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_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.00149/0.00149, allocations: 183.1 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 2.004/2.004, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001105/0.001104, allocations: 90.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2715/0.2715, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004477, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1069, allocations: 56.34 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5328/0.6397, allocations: 100.3 MB / 0.5658 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/0.6401, allocations: 98.69 kB / 0.5659 GB, free: 15.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06322/0.7034, allocations: 14.09 MB / 0.5797 GB, free: 2.883 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.7034, allocations: 0 / 0.5797 GB, free: 2.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.388e-05/0.7035, allocations: 20 kB / 0.5797 GB, free: 2.863 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003132/0.7067, allocations: 0.9643 MB / 0.5806 GB, free: 1.895 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.7067, allocations: 8.031 kB / 0.5806 GB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002881/0.707, allocations: 102 kB / 0.5807 GB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002309/0.7073, allocations: 75.11 kB / 0.5808 GB, free: 1.738 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004665/0.712, allocations: 1.127 MB / 0.5819 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002807/0.7123, allocations: 118.8 kB / 0.582 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.7125, allocations: 55.41 kB / 0.5821 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.7148, allocations: 0.7968 MB / 0.5829 GB, free: 0 / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.066e-05/0.7149, allocations: 4.047 kB / 0.5829 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-05/0.715, allocations: 21.5 kB / 0.5829 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.715, allocations: 15.95 kB / 0.5829 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002526/0.7176, allocations: 0.7057 MB / 0.5836 GB, free: 15.46 MB / 394.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.00708/0.7247, allocations: 2.739 MB / 0.5863 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003284/0.728, allocations: 0.9121 MB / 0.5871 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.061e-05/0.7281, allocations: 4.062 kB / 0.5872 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.7282, allocations: 42.38 kB / 0.5872 GB, free: 12.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.266e-06/0.7282, allocations: 0 / 0.5872 GB, free: 12.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=39): time 0.006596/0.7348, allocations: 1.979 MB / 0.5891 GB, free: 10.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.7349, allocations: 85.14 kB / 0.5892 GB, free: 10.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.7356, allocations: 368.4 kB / 0.5896 GB, free: 10.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.151e-05/0.7357, allocations: 35.52 kB / 0.5896 GB, free: 10.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.736, allocations: 358.3 kB / 0.5899 GB, free: 9.828 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.7362, allocations: 136.5 kB / 0.5901 GB, free: 9.711 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.893e-05/0.7363, allocations: 10.81 kB / 0.5901 GB, free: 9.707 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.7364, allocations: 325.1 kB / 0.5904 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008928/0.7373, allocations: 250 kB / 0.5906 GB, free: 9.211 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009809/0.7383, allocations: 367.8 kB / 0.591 GB, free: 8.883 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009324/0.7393, allocations: 274 kB / 0.5912 GB, free: 8.695 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.7393, allocations: 0 / 0.5912 GB, free: 8.695 MB / 394.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00237/0.7417, allocations: 0.7757 MB / 0.592 GB, free: 8.055 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.7417, allocations: 4 kB / 0.592 GB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.7417, allocations: 4 kB / 0.592 GB, free: 8.047 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003555/0.7421, allocations: 71.38 kB / 0.5921 GB, free: 7.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/0.7451, allocations: 374.5 kB / 0.5924 GB, free: 7.617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009433/0.7546, allocations: 6.18 MB / 0.5985 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007476/0.7554, allocations: 43 kB / 0.5985 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/0.7555, allocations: 27.7 kB / 0.5985 GB, free: 1.145 MB / 394.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.0005272/0.756, allocations: 233.8 kB / 0.5988 GB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.7562, allocations: 51.39 kB / 0.5988 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.7585, allocations: 0.7384 MB / 0.5995 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.7585, allocations: 4 kB / 0.5995 GB, free: 312 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7585, allocations: 3.938 kB / 0.5995 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.7586, allocations: 4 kB / 0.5995 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00426/0.7628, allocations: 1.525 MB / 0.601 GB, free: 15.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.7629, allocations: 0 / 0.601 GB, free: 15.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003417/0.7663, allocations: 403.2 kB / 0.6014 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003599/0.7667, allocations: 68.91 kB / 0.6015 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.899e-05/0.7668, allocations: 11.25 kB / 0.6015 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003055/0.7699, allocations: 2.855 MB / 0.6043 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.7699, allocations: 0 / 0.6043 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003304/0.7732, allocations: 1.184 MB / 0.6054 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.7735, allocations: 116.6 kB / 0.6055 GB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.7736, allocations: 15.81 kB / 0.6056 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005776/0.7742, allocations: 35.52 kB / 0.6056 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.7743, allocations: 41.95 kB / 0.6056 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/0.7744, allocations: 19.48 kB / 0.6056 GB, free: 10.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005039/0.7749, allocations: 290.8 kB / 0.6059 GB, free: 10.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7749, allocations: 0 / 0.6059 GB, free: 10.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009184/0.7759, allocations: 141.6 kB / 0.6061 GB, free: 9.996 MB / 410.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.003776/0.7797, allocations: 1.944 MB / 0.608 GB, free: 8.238 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004411/0.7841, allocations: 1.064 MB / 0.609 GB, free: 7.297 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.7842, allocations: 0 / 0.609 GB, free: 7.297 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00358/0.7878, allocations: 0.8017 MB / 0.6098 GB, free: 6.551 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.7889, allocations: 139.6 kB / 0.6099 GB, free: 6.445 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.7997, allocations: 6.134 MB / 0.6159 GB, free: 0.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.8005, allocations: 0.9585 MB / 0.6168 GB, free: 15.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004849/0.801, allocations: 207.4 kB / 0.617 GB, free: 15.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.801, allocations: 0 / 0.617 GB, free: 15.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.091/3.892, allocations: 19.3 MB / 0.6359 GB, free: 12.53 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)