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.001743/0.001748, allocations: 182.2 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001141/0.001141, allocations: 90.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2738/0.2738, allocations: 38.05 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004675/0.0004675, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5577/0.6658, allocations: 94.85 MB / 0.5605 GB, free: 4.348 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.6661, allocations: 95.62 kB / 0.5606 GB, free: 4.297 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02831/0.6944, allocations: 6.623 MB / 0.5671 GB, free: 14.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6945, allocations: 3.938 kB / 0.5671 GB, free: 14.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.032e-05/0.6945, allocations: 7.938 kB / 0.5671 GB, free: 14.6 MB / 378.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.001311/0.6959, allocations: 0.5713 MB / 0.5677 GB, free: 14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.6959, allocations: 8.031 kB / 0.5677 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.409e-05/0.696, allocations: 61.22 kB / 0.5677 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.045e-05/0.6961, allocations: 35.92 kB / 0.5678 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003112/0.6992, allocations: 0.787 MB / 0.5685 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.6993, allocations: 18.5 kB / 0.5685 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.6994, allocations: 22.38 kB / 0.5686 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006683/0.7001, allocations: 290.2 kB / 0.5688 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.7001, allocations: 0 / 0.5688 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.7002, allocations: 12.62 kB / 0.5689 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.7002, allocations: 4 kB / 0.5689 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004907/0.7007, allocations: 184.2 kB / 0.569 GB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.7028, allocations: 1.229 MB / 0.5702 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004309/0.7033, allocations: 106.6 kB / 0.5703 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.7033, allocations: 0 / 0.5703 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.009e-05/0.7033, allocations: 41.75 kB / 0.5704 GB, free: 11.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.7034, allocations: 0 / 0.5704 GB, free: 11.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.001188/0.7046, allocations: 480 kB / 0.5708 GB, free: 10.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.7046, allocations: 85.05 kB / 0.5709 GB, free: 10.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003528/0.705, allocations: 213 kB / 0.5711 GB, free: 10.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.705, allocations: 25.7 kB / 0.5711 GB, free: 10.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.7052, allocations: 267 kB / 0.5714 GB, free: 10.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.763e-05/0.7053, allocations: 35.14 kB / 0.5714 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.7053, allocations: 3.438 kB / 0.5714 GB, free: 10.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.7055, allocations: 321.5 kB / 0.5717 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.7056, allocations: 37.97 kB / 0.5718 GB, free: 10.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.7058, allocations: 130.2 kB / 0.5719 GB, free: 9.891 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.706, allocations: 57.38 kB / 0.572 GB, free: 9.855 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.706, allocations: 0 / 0.572 GB, free: 9.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004752/0.7065, allocations: 198.4 kB / 0.5721 GB, free: 9.691 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.7065, allocations: 8 kB / 0.5722 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.7065, allocations: 7.984 kB / 0.5722 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.7066, allocations: 4 kB / 0.5722 GB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000338/0.7069, allocations: 47.91 kB / 0.5722 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.7069, allocations: 4 kB / 0.5722 GB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.7072, allocations: 7.562 kB / 0.5722 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.7072, allocations: 11.38 kB / 0.5722 GB, free: 9.609 MB / 378.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.0002409/0.7075, allocations: 159.7 kB / 0.5724 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.488e-05/0.7075, allocations: 31.59 kB / 0.5724 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.7079, allocations: 128.4 kB / 0.5725 GB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.7079, allocations: 7.984 kB / 0.5725 GB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.7079, allocations: 0 / 0.5725 GB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.708, allocations: 0 / 0.5725 GB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008261/0.7088, allocations: 478.3 kB / 0.573 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.7088, allocations: 8.031 kB / 0.573 GB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.7091, allocations: 19.94 kB / 0.573 GB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.7091, allocations: 4 kB / 0.573 GB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.7092, allocations: 7.047 kB / 0.573 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.7092, allocations: 0 / 0.573 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.7092, allocations: 4 kB / 0.573 GB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005359/0.7097, allocations: 303.1 kB / 0.5733 GB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.7098, allocations: 100.2 kB / 0.5734 GB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.7099, allocations: 7.953 kB / 0.5734 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.7101, allocations: 3.625 kB / 0.5734 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.058e-05/0.7101, allocations: 7.984 kB / 0.5734 GB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.7101, allocations: 4 kB / 0.5734 GB, free: 8.398 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002483/0.7104, allocations: 175.6 kB / 0.5736 GB, free: 8.254 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7104, allocations: 4 kB / 0.5736 GB, free: 8.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004613/0.7109, allocations: 43.69 kB / 0.5737 GB, free: 8.211 MB / 378.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.0009212/0.7118, allocations: 0.9845 MB / 0.5746 GB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003514/0.7122, allocations: 114.2 kB / 0.5747 GB, free: 7.145 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.7122, allocations: 0 / 0.5747 GB, free: 7.145 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.7123, allocations: 41.42 kB / 0.5748 GB, free: 7.113 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006146/0.713, allocations: 63.12 kB / 0.5748 GB, free: 7.066 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003997/0.717, allocations: 3.61 MB / 0.5784 GB, free: 3.484 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004791/0.7175, allocations: 0.7784 MB / 0.5791 GB, free: 2.688 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.7177, allocations: 87.53 kB / 0.5792 GB, free: 2.652 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7177, allocations: 0 / 0.5792 GB, free: 2.652 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.455/3.172, allocations: 4.109 MB / 0.5832 GB, free: 14.59 MB / 394.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)