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.002057/0.002057, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.09/2.09, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 90.64 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2579/0.2579, allocations: 37.99 MB / 347.7 MB, free: 5.785 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.215e-05/2.232e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 56.32 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4831/0.5926, allocations: 94.1 MB / 0.5472 GB, free: 10.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.5929, allocations: 88.45 kB / 0.5473 GB, free: 10.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02721/0.6202, allocations: 6.56 MB / 0.5537 GB, free: 8.141 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.6202, allocations: 4 kB / 0.5537 GB, free: 8.137 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.6203, allocations: 7.719 kB / 0.5537 GB, free: 8.137 MB / 362.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.0009167/0.6212, allocations: 0.5279 MB / 0.5542 GB, free: 7.672 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.6212, allocations: 11.53 kB / 0.5543 GB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.354e-05/0.6213, allocations: 39.05 kB / 0.5543 GB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.6241, allocations: 0.7683 MB / 0.555 GB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.6242, allocations: 11.56 kB / 0.5551 GB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.6242, allocations: 11.53 kB / 0.5551 GB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004199/0.6247, allocations: 157.2 kB / 0.5552 GB, free: 7.199 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004546/0.6251, allocations: 254.6 kB / 0.5555 GB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.6252, allocations: 0 / 0.5555 GB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.6252, allocations: 4 kB / 0.5555 GB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.6252, allocations: 7.156 kB / 0.5555 GB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.6268, allocations: 1.177 MB / 0.5566 GB, free: 6.082 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003429/0.6271, allocations: 105 kB / 0.5567 GB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.592e-05/0.6272, allocations: 39.91 kB / 0.5568 GB, free: 6.004 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.6273, allocations: 4 kB / 0.5568 GB, free: 6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.6273, allocations: 33.94 kB / 0.5568 GB, free: 5.961 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.755e-06/0.6273, allocations: 0 / 0.5568 GB, free: 5.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008387/0.6282, allocations: 440.9 kB / 0.5572 GB, free: 5.609 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.6282, allocations: 77.11 kB / 0.5573 GB, free: 5.516 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.6284, allocations: 212.4 kB / 0.5575 GB, free: 5.391 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.6285, allocations: 25.7 kB / 0.5575 GB, free: 5.359 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.6286, allocations: 257.5 kB / 0.5578 GB, free: 5.152 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.6286, allocations: 34.52 kB / 0.5578 GB, free: 5.125 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-06/0.6287, allocations: 0 / 0.5578 GB, free: 5.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.021e-05/0.6287, allocations: 328.8 kB / 0.5581 GB, free: 4.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.901e-05/0.6288, allocations: 25.38 kB / 0.5581 GB, free: 4.805 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.629, allocations: 127.5 kB / 0.5583 GB, free: 4.676 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.6291, allocations: 54 kB / 0.5583 GB, free: 4.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.6291, allocations: 0 / 0.5583 GB, free: 4.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003446/0.6295, allocations: 163.6 kB / 0.5585 GB, free: 4.594 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.6295, allocations: 7.656 kB / 0.5585 GB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.6295, allocations: 3.875 kB / 0.5585 GB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.6295, allocations: 3.844 kB / 0.5585 GB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.6298, allocations: 46.56 kB / 0.5585 GB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.6299, allocations: 7.719 kB / 0.5585 GB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.6301, allocations: 8.344 kB / 0.5585 GB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.6301, allocations: 15.19 kB / 0.5586 GB, free: 4.574 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 () * 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 7.753e-05/0.6302, allocations: 112.8 kB / 0.5587 GB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002385/0.6304, allocations: 114.5 kB / 0.5588 GB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.833e-05/0.6305, allocations: 27.19 kB / 0.5588 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002891/0.6308, allocations: 118.6 kB / 0.5589 GB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.6308, allocations: 7.781 kB / 0.5589 GB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.6308, allocations: 0 / 0.5589 GB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.6308, allocations: 4.031 kB / 0.5589 GB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005951/0.6315, allocations: 425.8 kB / 0.5593 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.6315, allocations: 0 / 0.5593 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.6317, allocations: 22.56 kB / 0.5593 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.515e-06/0.6317, allocations: 3.812 kB / 0.5593 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.6318, allocations: 3.984 kB / 0.5594 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.6318, allocations: 0 / 0.5594 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-06/0.6318, allocations: 7.906 kB / 0.5594 GB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.6322, allocations: 291.1 kB / 0.5596 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.6322, allocations: 96.56 kB / 0.5597 GB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.387e-05/0.6323, allocations: 7.641 kB / 0.5597 GB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.6325, allocations: 0 / 0.5597 GB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.613e-05/0.6325, allocations: 11.86 kB / 0.5597 GB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.6325, allocations: 3.875 kB / 0.5598 GB, free: 3.664 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001543/0.6327, allocations: 156.7 kB / 0.5599 GB, free: 3.578 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6327, allocations: 0 / 0.5599 GB, free: 3.578 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004647/0.6332, allocations: 45.62 kB / 0.5599 GB, free: 3.578 MB / 362.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 () * 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.0005801/0.6338, allocations: 0.9637 MB / 0.5609 GB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002543/0.634, allocations: 103 kB / 0.561 GB, free: 2.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6341, allocations: 0.9375 kB / 0.561 GB, free: 2.676 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.451e-05/0.6342, allocations: 42.97 kB / 0.561 GB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005405/0.6347, allocations: 52.92 kB / 0.5611 GB, free: 2.656 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.636, allocations: 456.2 kB / 0.5615 GB, free: 2.336 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.6362, allocations: 0.7753 MB / 0.5623 GB, free: 1.594 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.6364, allocations: 85.38 kB / 0.5624 GB, free: 1.578 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6364, allocations: 0 / 0.5624 GB, free: 1.578 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.485/3.122, allocations: 4.074 MB / 0.5663 GB, free: 13.66 MB / 378.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)