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.001127/0.001128, allocations: 105.7 kB / 17.06 MB, free: 6.012 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.001236/0.001236, allocations: 195 kB / 18 MB, free: 5.094 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.377/1.377, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1847/0.1847, allocations: 37.98 MB / 309.2 MB, free: 5.969 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.00167/0.00167, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1038, allocations: 55.25 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007795/0.1116, allocations: 6.329 MB / 492.9 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.1147, allocations: 1.489 MB / 494.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006008/0.1153, allocations: 23.88 kB / 494.5 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006392/0.116, allocations: 154.8 kB / 494.6 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.1172, allocations: 425.9 kB / 495 MB, free: 396 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005829/0.1178, allocations: 211.7 kB / 495.2 MB, free: 184 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001534/0.1194, allocations: 1.125 MB / 496.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005463/0.1199, allocations: 352.6 kB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008238/0.1208, allocations: 486.1 kB / 497.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009333/0.1217, allocations: 0.5373 MB / 497.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.1219, allocations: 68 kB / 497.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.1221, allocations: 64 kB / 497.8 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003326/0.1224, allocations: 311.3 kB / 498.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004499/0.1229, allocations: 378.2 kB / 498.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008677/0.1238, allocations: 0.8683 MB / 499.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.1238, allocations: 0 / 499.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1238, allocations: 4 kB / 499.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.1238, allocations: 0 / 499.4 MB, free: 12.01 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.001945/0.1258, allocations: 1.023 MB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.1258, allocations: 15.89 kB / 0.4887 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001198/0.126, allocations: 106.6 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.1261, allocations: 72.09 kB / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009976/0.1271, allocations: 0.5886 MB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.1273, allocations: 124.6 kB / 0.4896 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.874e-05/0.1274, allocations: 52 kB / 0.4896 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.1287, allocations: 0.7811 MB / 0.4904 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1287, allocations: 4 kB / 0.4904 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.11e-05/0.1288, allocations: 24 kB / 0.4904 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/0.1289, allocations: 32.97 kB / 0.4904 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.1301, allocations: 0.6947 MB / 0.4911 GB, free: 8.352 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.003822/0.134, allocations: 2.696 MB / 0.4937 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.1356, allocations: 0.8741 MB / 0.4946 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/0.1362, allocations: 325.6 kB / 0.4949 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.1362, allocations: 4 kB / 0.4949 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.1362, allocations: 38.56 kB / 0.4949 GB, free: 4.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 1.773e-06/0.1362, allocations: 7.938 kB / 0.495 GB, free: 4.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.003578/0.1398, allocations: 1.933 MB / 0.4968 GB, free: 2.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.1399, allocations: 88.98 kB / 0.4969 GB, free: 2.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.1404, allocations: 414 kB / 0.4973 GB, free: 1.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.1404, allocations: 33.7 kB / 0.4974 GB, free: 1.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.1406, allocations: 328.1 kB / 0.4977 GB, free: 1.309 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.1407, allocations: 134 kB / 0.4978 GB, free: 1.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.1409, allocations: 86.25 kB / 0.4979 GB, free: 1.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1411, allocations: 358.8 kB / 0.4982 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.1415, allocations: 233 kB / 0.4984 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005317/0.1421, allocations: 358.2 kB / 0.4988 GB, free: 104 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.1431, allocations: 0.582 MB / 0.4994 GB, free: 15.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1431, allocations: 7.938 kB / 0.4994 GB, free: 15.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001375/0.1445, allocations: 0.7841 MB / 0.5001 GB, free: 14.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.1446, allocations: 8.312 kB / 0.5001 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.1446, allocations: 4.312 kB / 0.5001 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002793/0.1449, allocations: 77.67 kB / 0.5002 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.1462, allocations: 287.5 kB / 0.5005 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006422/0.1527, allocations: 6.52 MB / 0.5069 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.1531, allocations: 35.97 kB / 0.5069 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-05/0.1531, 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.0003987/0.1535, allocations: 237.8 kB / 0.5071 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.312e-05/0.1536, allocations: 43.44 kB / 0.5072 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.155, allocations: 0.7338 MB / 0.5079 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.155, allocations: 7.984 kB / 0.5079 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.155, allocations: 4 kB / 0.5079 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.155, allocations: 0 / 0.5079 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.1576, allocations: 1.503 MB / 0.5094 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.1576, allocations: 0 / 0.5094 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.1591, allocations: 307.6 kB / 0.5097 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002713/0.1594, allocations: 81.62 kB / 0.5097 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.274e-05/0.1594, allocations: 16 kB / 0.5098 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002462/0.1619, allocations: 3.165 MB / 0.5128 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1619, allocations: 0 / 0.5128 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.1639, allocations: 1.122 MB / 0.5139 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.164, allocations: 112.6 kB / 0.5141 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.895e-05/0.1641, allocations: 16.03 kB / 0.5141 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.1645, allocations: 31.95 kB / 0.5141 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.1646, allocations: 43.62 kB / 0.5141 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.1646, allocations: 16 kB / 0.5142 GB, free: 15.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003305/0.165, allocations: 299.1 kB / 0.5144 GB, free: 14.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.165, allocations: 0 / 0.5144 GB, free: 14.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006985/0.1657, 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.002128/0.1678, allocations: 1.67 MB / 0.5162 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002517/0.1704, allocations: 0.9855 MB / 0.5172 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.1704, allocations: 8 kB / 0.5172 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001835/0.1722, 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.000805/0.173, allocations: 149.7 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.007838/0.1809, allocations: 5.474 MB / 0.5234 GB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006236/0.1815, allocations: 0.9526 MB / 0.5243 GB, free: 4.469 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003493/0.1819, allocations: 96.56 kB / 0.5244 GB, free: 4.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003519/0.1823, allocations: 203.4 kB / 0.5246 GB, free: 4.176 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1823, allocations: 0 / 0.5246 GB, free: 4.176 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2501/0.4324, allocations: 13.06 MB / 0.5373 GB, free: 51.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.62, allocations: 1.781 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)