Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 104.7 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.184/0.184, allocations: 37.99 MB / 309.2 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.111, allocations: 55.25 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.00831/0.1194, allocations: 6.333 MB / 492.9 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003137/0.1226, allocations: 1.481 MB / 494.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006894/0.1233, allocations: 19.88 kB / 494.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007488/0.1241, allocations: 154.8 kB / 494.6 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001299/0.1254, allocations: 429.9 kB / 495 MB, free: 408 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006948/0.1261, allocations: 207.7 kB / 495.2 MB, free: 200 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001701/0.1279, allocations: 1.125 MB / 496.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005312/0.1284, allocations: 364.5 kB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009722/0.1294, allocations: 482.1 kB / 497.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.1306, allocations: 0.5451 MB / 497.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.1308, allocations: 64 kB / 497.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002495/0.1311, allocations: 64 kB / 497.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003781/0.1315, allocations: 311.3 kB / 498.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006234/0.1321, allocations: 374.3 kB / 498.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.1331, allocations: 0.8683 MB / 499.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1331, allocations: 0 / 499.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1332, allocations: 0 / 499.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.827e-05/0.1332, allocations: 4 kB / 499.4 MB, free: 12.02 MB / 382.1 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.002479/0.1357, allocations: 1.027 MB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.1357, allocations: 15.89 kB / 0.4887 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001362/0.1359, allocations: 102.6 kB / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.1361, allocations: 72.09 kB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.1373, allocations: 0.5963 MB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.1375, allocations: 116.6 kB / 0.4896 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.992e-05/0.1376, allocations: 52 kB / 0.4896 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.1389, allocations: 0.785 MB / 0.4904 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.1389, allocations: 4 kB / 0.4904 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.303e-05/0.139, allocations: 24 kB / 0.4904 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001092/0.1391, allocations: 36.97 kB / 0.4904 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1405, allocations: 0.6908 MB / 0.4911 GB, free: 8.355 MB / 382.1 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.004259/0.1447, allocations: 2.696 MB / 0.4937 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.1465, allocations: 0.8743 MB / 0.4946 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000568/0.1471, allocations: 325.6 kB / 0.4949 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.1471, allocations: 4 kB / 0.4949 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.1472, allocations: 42.5 kB / 0.495 GB, free: 4.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.975e-06/0.1472, allocations: 0 / 0.495 GB, free: 4.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.003777/0.151, allocations: 1.937 MB / 0.4968 GB, free: 2.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.1511, allocations: 89.05 kB / 0.4969 GB, free: 2.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.1516, allocations: 417.9 kB / 0.4973 GB, free: 1.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.1516, allocations: 33.7 kB / 0.4974 GB, free: 1.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.1519, allocations: 320.2 kB / 0.4977 GB, free: 1.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.152, allocations: 142 kB / 0.4978 GB, free: 1.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.1522, allocations: 86.25 kB / 0.4979 GB, free: 1.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1523, allocations: 354.8 kB / 0.4982 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005097/0.1528, allocations: 236.9 kB / 0.4984 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/0.1534, allocations: 354.3 kB / 0.4988 GB, free: 108 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.1545, allocations: 0.5781 MB / 0.4994 GB, free: 15.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1545, allocations: 7.938 kB / 0.4994 GB, free: 15.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001417/0.1559, allocations: 0.788 MB / 0.5001 GB, free: 14.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.156, allocations: 8.062 kB / 0.5001 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.156, allocations: 4 kB / 0.5001 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/0.1563, allocations: 81.88 kB / 0.5002 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.1577, allocations: 287.5 kB / 0.5005 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006258/0.164, allocations: 6.516 MB / 0.5069 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004699/0.1645, allocations: 39.95 kB / 0.5069 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.1645, allocations: 19.94 kB / 0.5069 GB, free: 7.145 MB / 398.1 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 (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003754/0.1649, allocations: 237.8 kB / 0.5071 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.165, allocations: 43.44 kB / 0.5072 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/0.1663, allocations: 0.7338 MB / 0.5079 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.1663, allocations: 8 kB / 0.5079 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1663, allocations: 4 kB / 0.5079 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1664, allocations: 3.984 kB / 0.5079 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/0.1689, allocations: 1.503 MB / 0.5094 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.1689, allocations: 4 kB / 0.5094 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.1705, allocations: 295.6 kB / 0.5097 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002586/0.1708, allocations: 85.62 kB / 0.5097 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.1708, allocations: 15.98 kB / 0.5098 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.1731, allocations: 3.173 MB / 0.5129 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1731, allocations: 0 / 0.5129 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.175, allocations: 1.118 MB / 0.514 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.1751, allocations: 116.6 kB / 0.5141 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.1751, allocations: 12 kB / 0.5141 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003152/0.1755, allocations: 35.95 kB / 0.5141 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.1756, allocations: 39.64 kB / 0.5141 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.1756, allocations: 12 kB / 0.5142 GB, free: 15.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003332/0.176, allocations: 295.1 kB / 0.5144 GB, free: 14.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.176, allocations: 4 kB / 0.5144 GB, free: 14.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006677/0.1766, allocations: 140 kB / 0.5146 GB, free: 14.8 MB / 414.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002153/0.1788, allocations: 1.678 MB / 0.5162 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002603/0.1814, allocations: 0.9852 MB / 0.5172 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.1814, allocations: 448 / 0.5172 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.1833, allocations: 0.7233 MB / 0.5179 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007685/0.1841, allocations: 142.3 kB / 0.518 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007504/0.1916, allocations: 5.482 MB / 0.5234 GB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005272/0.1922, allocations: 0.9487 MB / 0.5243 GB, free: 4.473 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003068/0.1925, allocations: 100.5 kB / 0.5244 GB, free: 4.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.1928, allocations: 195.4 kB / 0.5246 GB, free: 4.184 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1928, allocations: 0 / 0.5246 GB, free: 4.184 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2659/0.4587, allocations: 13.06 MB / 0.5373 GB, free: 51.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.79, allocations: 4.594 kB / 0.5373 GB, free: 51.38 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)