Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.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.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_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.0009099/0.0009099, allocations: 173.2 kB / 16.07 MB, free: 5.723 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.269/1.269, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0007349/0.0007348, allocations: 82.42 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1672/0.1672, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003272, allocations: 16 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2425, allocations: 56.33 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.005671/0.2482, allocations: 6.337 MB / 486.1 MB, free: 4.984 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.2505, allocations: 1.642 MB / 487.7 MB, free: 3.809 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003191/0.2508, allocations: 40.03 kB / 487.8 MB, free: 3.789 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004053/0.2512, allocations: 142.3 kB / 487.9 MB, free: 3.719 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007456/0.252, allocations: 432.1 kB / 488.3 MB, free: 3.492 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.2525, allocations: 201.6 kB / 488.5 MB, free: 3.395 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.2537, allocations: 1.278 MB / 489.8 MB, free: 2.934 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003698/0.2541, allocations: 279.2 kB / 490.1 MB, free: 2.832 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005016/0.2546, allocations: 377.1 kB / 490.4 MB, free: 2.691 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007011/0.2553, allocations: 0.5049 MB / 490.9 MB, free: 2.535 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/0.2554, allocations: 36 kB / 491 MB, free: 2.531 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.2555, allocations: 31.47 kB / 491 MB, free: 2.531 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002881/0.2558, allocations: 276.3 kB / 491.3 MB, free: 2.457 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003039/0.2561, allocations: 333.8 kB / 491.6 MB, free: 2.266 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006508/0.2568, allocations: 0.6418 MB / 492.2 MB, free: 2.125 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2568, allocations: 1.312 kB / 492.2 MB, free: 2.125 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2568, allocations: 0 / 492.2 MB, free: 2.125 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2568, allocations: 0 / 492.2 MB, free: 2.125 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001622/0.2584, allocations: 0.8999 MB / 493.1 MB, free: 1.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2585, allocations: 11.11 kB / 493.2 MB, free: 1.523 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.2586, allocations: 99.12 kB / 493.2 MB, free: 1.449 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.2587, allocations: 77.36 kB / 493.3 MB, free: 1.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008139/0.2595, allocations: 0.5486 MB / 493.9 MB, free: 1.043 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.2597, allocations: 126.2 kB / 494 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.905e-05/0.2598, allocations: 55.84 kB / 494.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.2611, allocations: 0.7829 MB / 494.8 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.2611, allocations: 6 kB / 494.8 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.493e-05/0.2612, allocations: 21.34 kB / 494.9 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.2613, allocations: 38.83 kB / 494.9 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.2627, allocations: 0.7496 MB / 495.6 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003685/0.2664, allocations: 2.634 MB / 498.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.268, allocations: 0.8394 MB / 499.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006581/0.2687, allocations: 409.3 kB / 499.5 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.2687, allocations: 17.56 kB / 499.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.2688, allocations: 41.38 kB / 499.6 MB, free: 14 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.2688, allocations: 4 kB / 499.6 MB, free: 14 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.004066/0.2729, allocations: 2.215 MB / 0.49 GB, free: 12.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.2729, allocations: 86.34 kB / 0.4901 GB, free: 12.47 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004278/0.2734, allocations: 392.7 kB / 0.4905 GB, free: 12.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.2734, allocations: 35.92 kB / 0.4905 GB, free: 12.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.2736, allocations: 287.2 kB / 0.4908 GB, free: 11.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.2737, allocations: 179.7 kB / 0.491 GB, free: 11.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/0.2738, allocations: 10.47 kB / 0.491 GB, free: 11.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.2739, allocations: 359.1 kB / 0.4913 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005646/0.2745, allocations: 289.4 kB / 0.4916 GB, free: 11.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.2751, allocations: 397.1 kB / 0.492 GB, free: 11.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.2763, allocations: 0.6823 MB / 0.4926 GB, free: 10.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2763, allocations: 0 / 0.4926 GB, free: 10.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001558/0.2778, allocations: 0.8988 MB / 0.4935 GB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.2779, allocations: 6.906 kB / 0.4935 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2779, allocations: 3.5 kB / 0.4935 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002396/0.2781, allocations: 80.31 kB / 0.4936 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.2798, allocations: 396.4 kB / 0.494 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005537/0.2853, allocations: 6.179 MB / 0.5 GB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.2859, allocations: 51.52 kB / 0.5001 GB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.2859, allocations: 29.69 kB / 0.5001 GB, free: 3.977 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (65): * Single equations (assignments): 61 * 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.0003788/0.2863, allocations: 239.3 kB / 0.5003 GB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.688e-05/0.2864, allocations: 46.81 kB / 0.5004 GB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.2879, allocations: 0.8529 MB / 0.5012 GB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2879, allocations: 6.125 kB / 0.5012 GB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.288, allocations: 1.094 kB / 0.5012 GB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.288, allocations: 5.047 kB / 0.5012 GB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.2907, allocations: 1.726 MB / 0.5029 GB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2908, allocations: 4.188 kB / 0.5029 GB, free: 1.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/0.2925, allocations: 419.6 kB / 0.5033 GB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002547/0.2928, allocations: 93.56 kB / 0.5034 GB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.2928, allocations: 19.98 kB / 0.5034 GB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.2948, allocations: 2.887 MB / 0.5062 GB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2948, allocations: 7.875 kB / 0.5062 GB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.2969, allocations: 1.359 MB / 0.5076 GB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2971, allocations: 124.5 kB / 0.5077 GB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.2972, allocations: 16 kB / 0.5077 GB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003766/0.2976, allocations: 47.95 kB / 0.5077 GB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.2977, allocations: 51.8 kB / 0.5078 GB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/0.2978, allocations: 16 kB / 0.5078 GB, free: 12.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000292/0.2981, allocations: 279.1 kB / 0.5081 GB, free: 12.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2981, allocations: 0 / 0.5081 GB, free: 12.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006782/0.2987, allocations: 144 kB / 0.5082 GB, free: 12.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (51): * Single equations (assignments): 48 * 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.002324/0.3011, allocations: 1.912 MB / 0.5101 GB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.3038, allocations: 1.199 MB / 0.5113 GB, free: 8.895 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3038, allocations: 4 kB / 0.5113 GB, free: 8.891 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.3058, allocations: 0.8846 MB / 0.5121 GB, free: 7.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000849/0.3067, allocations: 130 kB / 0.5122 GB, free: 7.855 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006607/0.3133, allocations: 4.335 MB / 0.5165 GB, free: 3.391 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.3138, allocations: 0.9369 MB / 0.5174 GB, free: 2.426 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.3141, allocations: 199.4 kB / 0.5176 GB, free: 2.23 MB / 346.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3141, allocations: 0 / 0.5176 GB, free: 2.23 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.185/4.499, allocations: 18.23 MB / 0.5354 GB, free: 15.97 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)