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.001927/0.001927, allocations: 186.4 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 86.64 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2556/0.2556, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.141e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5095/0.6194, allocations: 99.51 MB / 0.5525 GB, free: 9.328 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.6198, allocations: 92.69 kB / 0.5526 GB, free: 9.312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05633/0.6761, allocations: 13.94 MB / 0.5662 GB, free: 15.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6762, allocations: 0 / 0.5662 GB, free: 15.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.999e-05/0.6762, allocations: 12 kB / 0.5662 GB, free: 15.76 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.002724/0.679, allocations: 0.8916 MB / 0.5671 GB, free: 14.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.679, allocations: 12.03 kB / 0.5671 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003424/0.6794, allocations: 75.11 kB / 0.5672 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004627/0.684, allocations: 1.108 MB / 0.5683 GB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002645/0.6843, allocations: 100.7 kB / 0.5684 GB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001745/0.6845, allocations: 32 kB / 0.5684 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001572/0.6861, allocations: 0.5531 MB / 0.5689 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.6877, allocations: 0.6527 MB / 0.5696 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/0.6878, allocations: 3.938 kB / 0.5696 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.618e-05/0.6879, allocations: 4 kB / 0.5696 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.134e-05/0.6879, allocations: 19.95 kB / 0.5696 GB, free: 12.79 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or 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.006803/0.6947, allocations: 2.615 MB / 0.5722 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001959/0.6967, allocations: 0.7313 MB / 0.5729 GB, free: 9.938 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005927/0.6973, allocations: 273.7 kB / 0.5731 GB, free: 9.758 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.708e-05/0.6974, allocations: 7.984 kB / 0.5731 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.6975, allocations: 41.75 kB / 0.5732 GB, free: 9.703 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 3.316e-06/0.6975, allocations: 0 / 0.5732 GB, free: 9.703 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.003185/0.7007, allocations: 1.27 MB / 0.5744 GB, free: 8.582 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.7008, allocations: 81.11 kB / 0.5745 GB, free: 8.484 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005281/0.7013, allocations: 320.9 kB / 0.5748 GB, free: 8.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.7014, allocations: 29.7 kB / 0.5748 GB, free: 8.191 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.7017, allocations: 355.5 kB / 0.5752 GB, free: 7.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.7018, allocations: 135.4 kB / 0.5753 GB, free: 7.785 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/0.7019, allocations: 0 / 0.5753 GB, free: 7.785 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.702, allocations: 328.2 kB / 0.5756 GB, free: 7.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.7025, allocations: 182.4 kB / 0.5758 GB, free: 7.352 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.703, allocations: 292.7 kB / 0.5761 GB, free: 7.094 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.7035, allocations: 212.4 kB / 0.5763 GB, free: 6.953 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.7036, allocations: 0 / 0.5763 GB, free: 6.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001489/0.7051, allocations: 0.6249 MB / 0.5769 GB, free: 6.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.7051, allocations: 8 kB / 0.5769 GB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.7051, allocations: 4 kB / 0.5769 GB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003467/0.7055, allocations: 71.12 kB / 0.577 GB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003024/0.7085, allocations: 379.5 kB / 0.5773 GB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007014/0.7156, allocations: 5.635 MB / 0.5828 GB, free: 156 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007506/0.7164, allocations: 31.97 kB / 0.5829 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.124e-05/0.7164, allocations: 26.17 kB / 0.5829 GB, free: 104 kB / 378.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 () * 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.0002261/0.7167, allocations: 120.9 kB / 0.583 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001301/0.718, allocations: 0.5596 MB / 0.5835 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.7181, allocations: 43.48 kB / 0.5836 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.7195, allocations: 0.6042 MB / 0.5842 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.7196, allocations: 8 kB / 0.5842 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/0.7196, allocations: 0 / 0.5842 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.7196, allocations: 0 / 0.5842 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/0.7228, allocations: 1.298 MB / 0.5854 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.7229, allocations: 0 / 0.5854 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003398/0.7263, allocations: 398.9 kB / 0.5858 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003544/0.7267, allocations: 68.25 kB / 0.5859 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.348e-05/0.7268, allocations: 7.984 kB / 0.5859 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.7297, allocations: 2.735 MB / 0.5886 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.7298, allocations: 0 / 0.5886 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.7318, allocations: 0.9765 MB / 0.5895 GB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.732, allocations: 124.5 kB / 0.5896 GB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.527e-05/0.7321, allocations: 11.97 kB / 0.5897 GB, free: 9.605 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005744/0.7327, allocations: 31.97 kB / 0.5897 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.7329, allocations: 39.12 kB / 0.5897 GB, free: 9.543 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.331e-05/0.7329, allocations: 8 kB / 0.5897 GB, free: 9.535 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004002/0.7333, allocations: 250.8 kB / 0.59 GB, free: 9.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7334, allocations: 0 / 0.59 GB, free: 9.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009681/0.7343, allocations: 124 kB / 0.5901 GB, free: 9.219 MB / 394.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 () * 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.002485/0.7368, allocations: 1.756 MB / 0.5918 GB, free: 7.629 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003533/0.7404, allocations: 0.9061 MB / 0.5927 GB, free: 6.844 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.555e-06/0.7405, allocations: 4.375 kB / 0.5927 GB, free: 6.84 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003115/0.7436, allocations: 0.739 MB / 0.5934 GB, free: 6.164 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.7446, allocations: 101.8 kB / 0.5935 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003432/0.7481, allocations: 1.269 MB / 0.5947 GB, free: 4.906 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007902/0.7489, allocations: 0.962 MB / 0.5957 GB, free: 3.945 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004528/0.7494, allocations: 202.2 kB / 0.5959 GB, free: 3.891 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7494, allocations: 0 / 0.5959 GB, free: 3.891 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.09/3.839, allocations: 18.84 MB / 0.6143 GB, free: 1.145 MB / 410.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)