Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Units",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.002135/0.002135, 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.268/2.268, allocations: 205.3 MB / 213.7 MB, free: 1.73 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.001098/0.001098, allocations: 86.66 kB / 261.7 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2731/0.2731, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.21e-05, allocations: 0 / 409.9 MB, free: 35.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5034/0.6144, allocations: 98.63 MB / 0.5517 GB, free: 9.641 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.6148, allocations: 78.33 kB / 0.5517 GB, free: 9.629 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07774/0.6925, allocations: 19.16 MB / 0.5704 GB, free: 12.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6926, allocations: 0 / 0.5704 GB, free: 12.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.378e-05/0.6927, allocations: 20 kB / 0.5705 GB, free: 12.22 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002496/0.6952, allocations: 0.9017 MB / 0.5713 GB, free: 11.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.6952, allocations: 8.031 kB / 0.5713 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.6964, allocations: 138.9 kB / 0.5715 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003292/0.6997, allocations: 0.8643 MB / 0.5723 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.688e-05/0.6998, allocations: 24 kB / 0.5723 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.7, allocations: 44.75 kB / 0.5724 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001915/0.7019, allocations: 0.6763 MB / 0.5731 GB, free: 9.895 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.7041, allocations: 0.9687 MB / 0.574 GB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.929e-05/0.7042, allocations: 11.25 kB / 0.574 GB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.922e-05/0.7043, allocations: 4 kB / 0.574 GB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/0.7045, allocations: 49.98 kB / 0.5741 GB, free: 8.977 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008809/0.7133, allocations: 4.855 MB / 0.5788 GB, free: 4.414 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.7144, allocations: 376.9 kB / 0.5792 GB, free: 4.133 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000449/0.7148, allocations: 205.5 kB / 0.5794 GB, free: 3.992 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.402e-05/0.7149, allocations: 4.328 kB / 0.5794 GB, free: 3.988 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/0.715, allocations: 46.14 kB / 0.5794 GB, free: 3.938 MB / 378.7 MB Notification: Performance of pre-optimization done (n=47): time 3.126e-06/0.715, allocations: 0 / 0.5794 GB, free: 3.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.002619/0.7176, allocations: 0.8999 MB / 0.5803 GB, free: 3.188 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.7177, allocations: 81.11 kB / 0.5804 GB, free: 3.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006709/0.7184, allocations: 393.4 kB / 0.5807 GB, free: 2.777 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.929e-05/0.7185, allocations: 25.7 kB / 0.5808 GB, free: 2.746 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003895/0.7189, allocations: 499.9 kB / 0.5812 GB, free: 2.316 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.7191, allocations: 167.1 kB / 0.5814 GB, free: 2.172 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.7191, allocations: 0 / 0.5814 GB, free: 2.172 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.7193, allocations: 345.2 kB / 0.5817 GB, free: 1.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000531/0.7199, allocations: 220.8 kB / 0.5819 GB, free: 1.695 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008712/0.7207, allocations: 0.5919 MB / 0.5825 GB, free: 1.012 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009158/0.7217, allocations: 359.9 kB / 0.5829 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.7217, allocations: 4 kB / 0.5829 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001957/0.7237, allocations: 0.7835 MB / 0.5836 GB, free: 100 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.7237, allocations: 12 kB / 0.5836 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/0.7238, allocations: 12 kB / 0.5837 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.608e-05/0.7238, allocations: 20 kB / 0.5837 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.7251, allocations: 202.4 kB / 0.5839 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.2e-05/0.7252, allocations: 31.88 kB / 0.5839 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007249/0.7259, allocations: 31.88 kB / 0.5839 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.417e-05/0.726, allocations: 43.92 kB / 0.584 GB, free: 15.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (97): * Single equations (assignments): 95 * Array equations: 2 * 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.0001835/0.7262, allocations: 144.2 kB / 0.5841 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001169/0.7274, allocations: 470.1 kB / 0.5846 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.7275, allocations: 51.34 kB / 0.5846 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.729, allocations: 0.5191 MB / 0.5851 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.18e-05/0.729, allocations: 14.83 kB / 0.5851 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.729, allocations: 4.031 kB / 0.5851 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.7291, allocations: 3.984 kB / 0.5851 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002947/0.732, allocations: 1.213 MB / 0.5863 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-06/0.7321, allocations: 0 / 0.5863 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008428/0.7329, allocations: 107.7 kB / 0.5864 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.7329, allocations: 4 kB / 0.5864 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/0.733, allocations: 7.984 kB / 0.5864 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.024e-05/0.733, allocations: 7.938 kB / 0.5864 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.733, allocations: 4 kB / 0.5864 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.7344, allocations: 0.7545 MB / 0.5872 GB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.7347, allocations: 135.8 kB / 0.5873 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.386e-05/0.7348, allocations: 0 / 0.5873 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004747/0.7353, allocations: 27.92 kB / 0.5873 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.255e-05/0.7354, allocations: 35.14 kB / 0.5874 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.634e-05/0.7354, allocations: 15.25 kB / 0.5874 GB, free: 12.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004956/0.736, allocations: 283.2 kB / 0.5877 GB, free: 12.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.736, allocations: 0 / 0.5877 GB, free: 12.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001081/0.7371, allocations: 159.9 kB / 0.5878 GB, free: 12.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (48): * Single equations (assignments): 45 * Array equations: 2 * 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.002187/0.7393, allocations: 1.948 MB / 0.5897 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.7407, allocations: 0.5648 MB / 0.5903 GB, free: 9.996 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7408, allocations: 0 / 0.5903 GB, free: 9.996 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005182/0.7413, allocations: 248.1 kB / 0.5905 GB, free: 9.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000891/0.7422, allocations: 94.23 kB / 0.5906 GB, free: 9.754 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/0.746, allocations: 1.266 MB / 0.5918 GB, free: 8.566 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009166/0.7469, allocations: 1.013 MB / 0.5928 GB, free: 7.562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005683/0.7475, allocations: 262.8 kB / 0.5931 GB, free: 7.488 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/0.7475, allocations: 0 / 0.5931 GB, free: 7.488 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.803/3.55, allocations: 11.6 MB / 0.6044 GB, free: 12 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe 2>&1)