Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001113/0.001113, allocations: 171.6 kB / 16.07 MB, free: 5.695 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.348/1.348, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0007697/0.0007698, allocations: 94.62 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1667/0.1667, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003571, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2447, allocations: 56.33 MB / 479.7 MB, free: 9.215 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006722/0.2515, allocations: 4.17 MB / 483.9 MB, free: 6.504 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.254, allocations: 1.083 MB / 485 MB, free: 5.73 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002905/0.2544, allocations: 24.75 kB / 485 MB, free: 5.719 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002664/0.2546, allocations: 55.14 kB / 485.1 MB, free: 5.691 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008216/0.2555, allocations: 201.4 kB / 485.3 MB, free: 5.578 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.2559, allocations: 112.4 kB / 485.4 MB, free: 5.523 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007367/0.2567, allocations: 445.5 kB / 485.8 MB, free: 5.344 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.257, allocations: 98.98 kB / 485.9 MB, free: 5.316 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.2574, allocations: 142.9 kB / 486 MB, free: 5.258 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005594/0.258, allocations: 181.8 kB / 486.2 MB, free: 5.191 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.287e-05/0.2581, allocations: 15 kB / 486.2 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.952e-05/0.2582, allocations: 9.938 kB / 486.3 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.2584, allocations: 80.86 kB / 486.3 MB, free: 5.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002472/0.2587, allocations: 144.4 kB / 486.5 MB, free: 5.066 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003643/0.259, allocations: 212.1 kB / 486.7 MB, free: 5.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2591, allocations: 1.031 kB / 486.7 MB, free: 5.008 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2591, allocations: 0 / 486.7 MB, free: 5.008 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.2591, allocations: 0 / 486.7 MB, free: 5.008 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001292/0.2604, allocations: 0.543 MB / 487.2 MB, free: 4.547 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.2605, allocations: 10.16 kB / 487.2 MB, free: 4.547 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.1e-05/0.2606, allocations: 55.34 kB / 487.3 MB, free: 4.496 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.732e-05/0.2607, allocations: 32.44 kB / 487.3 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006326/0.2613, allocations: 328 kB / 487.6 MB, free: 4.207 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.2614, allocations: 21.38 kB / 487.7 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.33e-05/0.2615, allocations: 23.03 kB / 487.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006968/0.2622, allocations: 288.9 kB / 488 MB, free: 4.008 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.2622, allocations: 1.125 kB / 488 MB, free: 4.008 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.2623, allocations: 6.734 kB / 488 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.2623, allocations: 6.312 kB / 488 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005086/0.2628, allocations: 184.8 kB / 488.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.2648, allocations: 1.23 MB / 489.4 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004234/0.2652, allocations: 109 kB / 489.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.2654, allocations: 42.91 kB / 489.5 MB, free: 2.816 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.2654, allocations: 6.031 kB / 489.5 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.2654, allocations: 32.59 kB / 489.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.655e-06/0.2655, allocations: 0 / 489.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.001127/0.2666, allocations: 487 kB / 490 MB, free: 2.383 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.2667, allocations: 84.14 kB / 490.1 MB, free: 2.285 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.267, allocations: 245.9 kB / 490.4 MB, free: 2.129 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.2671, allocations: 30.92 kB / 490.4 MB, free: 2.094 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.2672, allocations: 202.9 kB / 490.6 MB, free: 1.922 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.511e-05/0.2672, allocations: 36.53 kB / 490.6 MB, free: 1.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.2673, allocations: 6.5 kB / 490.6 MB, free: 1.891 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.732e-05/0.2674, allocations: 330.6 kB / 491 MB, free: 1.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.2675, allocations: 35.09 kB / 491 MB, free: 1.559 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2677, allocations: 137.1 kB / 491.1 MB, free: 1.414 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.268, allocations: 192.3 kB / 491.3 MB, free: 1.234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.268, allocations: 1.375 kB / 491.3 MB, free: 1.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004984/0.2685, allocations: 207.6 kB / 491.5 MB, free: 1.129 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.2686, allocations: 6.031 kB / 491.5 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2686, allocations: 8.906 kB / 491.5 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.2686, allocations: 4.125 kB / 491.5 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.2689, allocations: 44.39 kB / 491.6 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.269, allocations: 9.531 kB / 491.6 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.2692, allocations: 8 kB / 491.6 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.2692, allocations: 14.14 kB / 491.6 MB, free: 1.109 MB / 314.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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001826/0.2694, allocations: 156.8 kB / 491.8 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.731e-05/0.2695, allocations: 22.75 kB / 491.8 MB, free: 0.957 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003481/0.2699, allocations: 133.8 kB / 491.9 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2699, allocations: 2.75 kB / 491.9 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2699, allocations: 0 / 491.9 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.2699, allocations: 6.156 kB / 491.9 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007635/0.2707, allocations: 484.5 kB / 492.4 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.299e-06/0.2707, allocations: 1.375 kB / 492.4 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.271, allocations: 24.62 kB / 492.4 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.271, allocations: 1.375 kB / 492.4 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.271, allocations: 9.828 kB / 492.4 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.271, allocations: 1.984 kB / 492.4 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.271, allocations: 5.375 kB / 492.4 MB, free: 488 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004541/0.2715, allocations: 273.9 kB / 492.7 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.848e-05/0.2716, allocations: 100.4 kB / 492.8 MB, free: 168 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.727e-05/0.2716, allocations: 9.906 kB / 492.8 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.2719, allocations: 1.984 kB / 492.8 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.729e-05/0.2719, allocations: 10.84 kB / 492.8 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.2719, allocations: 4.125 kB / 492.8 MB, free: 156 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002236/0.2722, allocations: 170.8 kB / 493 MB, free: 52 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.533e-06/0.2722, allocations: 96 / 493 MB, free: 52 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005498/0.2728, allocations: 55.31 kB / 493.1 MB, free: 36 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008092/0.2736, allocations: 0.8132 MB / 493.9 MB, free: 15.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003324/0.2739, allocations: 105.6 kB / 494 MB, free: 15.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.274, allocations: 5.688 kB / 494 MB, free: 15.26 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.2741, allocations: 45.81 kB / 494 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007964/0.2749, allocations: 52.7 kB / 494.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00342/0.2784, allocations: 1.516 MB / 495.6 MB, free: 14.26 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.2789, allocations: 0.7759 MB / 496.4 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002024/0.2791, allocations: 81.91 kB / 496.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2791, allocations: 0 / 496.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.823/3.102, allocations: 3.78 MB / 0.4885 GB, free: 12.66 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)