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.0008402/0.0008402, allocations: 170.8 kB / 16.07 MB, free: 5.605 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.252/1.252, allocations: 205.4 MB / 222.2 MB, free: 13.71 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.0007318/0.0007318, allocations: 98.28 kB / 270.6 MB, free: 13.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1559/0.1559, allocations: 38.08 MB / 356.9 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003015, allocations: 12 kB / 423.4 MB, free: 25.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08837/0.08869, allocations: 56.34 MB / 479.7 MB, free: 1.578 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.006605/0.09534, allocations: 6.613 MB / 486.4 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.09803, allocations: 1.708 MB / 488.1 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003888/0.09845, allocations: 43.69 kB / 488.1 MB, free: 9.176 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004893/0.09894, allocations: 162.9 kB / 488.3 MB, free: 9.016 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.09999, allocations: 465.7 kB / 488.7 MB, free: 8.559 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006909/0.1007, allocations: 215.7 kB / 488.9 MB, free: 8.348 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.1023, allocations: 1.324 MB / 490.3 MB, free: 7.02 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004096/0.1027, allocations: 283 kB / 490.5 MB, free: 6.742 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005576/0.1033, allocations: 398.2 kB / 490.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006861/0.104, allocations: 0.5102 MB / 491.4 MB, free: 5.84 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-05/0.1041, allocations: 32 kB / 491.5 MB, free: 5.809 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.1042, allocations: 35.94 kB / 491.5 MB, free: 5.773 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002639/0.1045, allocations: 279.3 kB / 491.8 MB, free: 5.5 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003613/0.1048, allocations: 344.2 kB / 492.1 MB, free: 5.156 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.1054, allocations: 0.6623 MB / 492.8 MB, free: 4.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1054, allocations: 3.938 kB / 492.8 MB, free: 4.488 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.048e-06/0.1054, allocations: 7.984 kB / 492.8 MB, free: 4.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.1054, allocations: 3.938 kB / 492.8 MB, free: 4.477 MB / 330.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.001666/0.1071, allocations: 0.9141 MB / 493.7 MB, free: 3.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.1071, allocations: 8.031 kB / 493.7 MB, free: 3.504 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001274/0.1073, allocations: 106.7 kB / 493.8 MB, free: 3.391 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.1074, allocations: 72.09 kB / 493.9 MB, free: 3.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009025/0.1083, allocations: 0.5534 MB / 494.4 MB, free: 2.727 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.1085, allocations: 128.6 kB / 494.6 MB, free: 2.586 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.532e-05/0.1086, allocations: 56 kB / 494.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.1099, allocations: 0.7889 MB / 495.4 MB, free: 1.711 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.1099, allocations: 4 kB / 495.4 MB, free: 1.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.84e-05/0.11, allocations: 24 kB / 495.4 MB, free: 1.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.1101, allocations: 44.91 kB / 495.5 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.1114, allocations: 0.7181 MB / 496.2 MB, free: 0.9219 MB / 330.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.003959/0.1154, allocations: 2.762 MB / 499 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.1172, allocations: 0.9172 MB / 499.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/0.1178, allocations: 353.1 kB / 0.4885 GB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.1178, allocations: 4 kB / 0.4885 GB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.1178, allocations: 38.55 kB / 0.4885 GB, free: 12.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 2.124e-06/0.1178, allocations: 0 / 0.4885 GB, free: 12.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.003744/0.1216, allocations: 2.015 MB / 0.4905 GB, free: 10.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.1217, allocations: 85.05 kB / 0.4906 GB, free: 10.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004834/0.1222, allocations: 425.8 kB / 0.491 GB, free: 10.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.1222, allocations: 29.7 kB / 0.491 GB, free: 9.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.1224, allocations: 320.3 kB / 0.4913 GB, free: 9.664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1225, allocations: 130 kB / 0.4914 GB, free: 9.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-05/0.1226, allocations: 8 kB / 0.4915 GB, free: 9.527 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1227, allocations: 362.8 kB / 0.4918 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004755/0.1232, allocations: 249 kB / 0.492 GB, free: 8.922 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005355/0.1237, allocations: 374.2 kB / 0.4924 GB, free: 8.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.1248, allocations: 0.6091 MB / 0.493 GB, free: 7.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1248, allocations: 4 kB / 0.493 GB, free: 7.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001352/0.1261, allocations: 0.8156 MB / 0.4938 GB, free: 7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1262, allocations: 8 kB / 0.4938 GB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.1262, allocations: 4 kB / 0.4938 GB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002363/0.1264, allocations: 77.59 kB / 0.4939 GB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.1279, allocations: 375.6 kB / 0.4942 GB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005377/0.1333, allocations: 6.155 MB / 0.5002 GB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004216/0.1338, allocations: 56.05 kB / 0.5003 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.1338, allocations: 19.94 kB / 0.5003 GB, free: 15.78 MB / 362.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.0003204/0.1341, allocations: 234 kB / 0.5005 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.1342, allocations: 55.31 kB / 0.5006 GB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.1355, allocations: 0.7612 MB / 0.5013 GB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1355, allocations: 4 kB / 0.5013 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1355, allocations: 11.94 kB / 0.5014 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1356, allocations: 4 kB / 0.5014 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002388/0.138, allocations: 1.53 MB / 0.5028 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.138, allocations: 64 / 0.5028 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/0.1396, allocations: 403.6 kB / 0.5032 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002641/0.1399, allocations: 89.62 kB / 0.5033 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.14, allocations: 15.94 kB / 0.5033 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.142, allocations: 2.883 MB / 0.5062 GB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.142, allocations: 3.938 kB / 0.5062 GB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.1439, allocations: 1.16 MB / 0.5073 GB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.1441, allocations: 124.5 kB / 0.5074 GB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.515e-05/0.1441, allocations: 12 kB / 0.5074 GB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003246/0.1445, allocations: 43.95 kB / 0.5075 GB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.1446, allocations: 35.94 kB / 0.5075 GB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.1446, allocations: 12 kB / 0.5075 GB, free: 7.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003514/0.145, allocations: 291.1 kB / 0.5078 GB, free: 7.664 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.145, allocations: 0 / 0.5078 GB, free: 7.664 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006216/0.1456, allocations: 140 kB / 0.5079 GB, free: 7.527 MB / 362.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.002136/0.1478, allocations: 1.728 MB / 0.5096 GB, free: 5.738 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00263/0.1504, allocations: 1.106 MB / 0.5107 GB, free: 4.605 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1504, allocations: 4 kB / 0.5107 GB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/0.1523, allocations: 0.806 MB / 0.5115 GB, free: 3.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000846/0.1532, allocations: 141.9 kB / 0.5116 GB, free: 3.629 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1561/0.3093, allocations: 4.057 MB / 0.5156 GB, free: 51.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.3097, allocations: 0.9489 MB / 0.5165 GB, free: 50.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.31, allocations: 201.6 kB / 0.5167 GB, free: 50.66 MB / 362.7 MB Notification: Performance of SimCode: time 8.21e-07/0.31, allocations: 0 / 0.5167 GB, free: 50.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.435/4.745, allocations: 18.64 MB / 0.5349 GB, free: 43.84 MB / 362.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)