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.002144/0.002144, allocations: 184.7 kB / 13.19 MB, free: 2.125 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.425/2.425, allocations: 205.2 MB / 218.9 MB, free: 9.199 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.001114/0.001114, allocations: 97 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2997/0.2997, allocations: 37.97 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.546e-05/3.574e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 56.31 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5091/0.6193, allocations: 99.31 MB / 0.5591 GB, free: 4.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.6197, allocations: 79.95 kB / 0.5592 GB, free: 4.191 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1213/0.7411, allocations: 19.29 MB / 0.578 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.7411, allocations: 0 / 0.578 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000109/0.7413, allocations: 23.94 kB / 0.578 GB, free: 0.6719 MB / 410.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.002933/0.7442, allocations: 0.9007 MB / 0.5789 GB, free: 15.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.7443, allocations: 8.031 kB / 0.5789 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004366/0.7447, allocations: 135.1 kB / 0.579 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00118/0.7459, allocations: 138.9 kB / 0.5792 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00353/0.7495, allocations: 0.8673 MB / 0.58 GB, free: 14.53 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.522e-05/0.7496, allocations: 58 kB / 0.5801 GB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002449/0.7499, allocations: 79.89 kB / 0.5802 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00291/0.7528, allocations: 1.084 MB / 0.5812 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.173e-05/0.7529, allocations: 7.938 kB / 0.5812 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.7531, allocations: 36 kB / 0.5813 GB, free: 13.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/0.7532, allocations: 49.98 kB / 0.5813 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002368/0.7556, allocations: 0.7805 MB / 0.5821 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009599/0.7652, allocations: 5.008 MB / 0.587 GB, free: 7.094 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.7665, allocations: 402 kB / 0.5873 GB, free: 6.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005356/0.7671, allocations: 210.4 kB / 0.5875 GB, free: 6.469 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.117e-05/0.7671, allocations: 8.5 kB / 0.5875 GB, free: 6.461 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.7672, allocations: 42.83 kB / 0.5876 GB, free: 6.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=47): time 3.888e-06/0.7672, allocations: 0 / 0.5876 GB, free: 6.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.002727/0.77, allocations: 0.916 MB / 0.5885 GB, free: 5.484 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/0.7701, allocations: 89.12 kB / 0.5886 GB, free: 5.379 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008107/0.7709, allocations: 443.6 kB / 0.589 GB, free: 4.938 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.437e-05/0.771, allocations: 29.7 kB / 0.589 GB, free: 4.902 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004207/0.7714, allocations: 492.2 kB / 0.5895 GB, free: 4.418 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002311/0.7717, allocations: 169.6 kB / 0.5897 GB, free: 4.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.7717, allocations: 16 kB / 0.5897 GB, free: 4.234 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.7719, allocations: 342.8 kB / 0.59 GB, free: 3.891 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006365/0.7726, allocations: 233.7 kB / 0.5902 GB, free: 3.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.7736, allocations: 0.6159 MB / 0.5908 GB, free: 2.855 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009655/0.7746, allocations: 367.6 kB / 0.5912 GB, free: 2.496 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/0.7747, allocations: 4 kB / 0.5912 GB, free: 2.492 MB / 426.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00222/0.7769, allocations: 0.8601 MB / 0.592 GB, free: 1.625 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.777, allocations: 15.95 kB / 0.592 GB, free: 1.609 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/0.777, allocations: 12 kB / 0.592 GB, free: 1.598 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.646e-05/0.7771, allocations: 20 kB / 0.5921 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.7785, allocations: 208.3 kB / 0.5923 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.999e-05/0.7786, allocations: 23.94 kB / 0.5923 GB, free: 1.352 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.7794, allocations: 55.8 kB / 0.5923 GB, free: 1.297 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.782e-05/0.7795, allocations: 44 kB / 0.5924 GB, free: 1.254 MB / 426.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.0002412/0.7798, allocations: 162.5 kB / 0.5925 GB, free: 1.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.7799, allocations: 51.34 kB / 0.5926 GB, free: 1.039 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/0.7816, allocations: 0.5536 MB / 0.5931 GB, free: 492 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.033e-05/0.7817, allocations: 15.98 kB / 0.5931 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.7817, allocations: 3.938 kB / 0.5931 GB, free: 472 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.7817, allocations: 0 / 0.5931 GB, free: 472 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003646/0.7854, allocations: 1.326 MB / 0.5944 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.7855, allocations: 4 kB / 0.5944 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008815/0.7863, allocations: 107.9 kB / 0.5945 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.499e-05/0.7864, allocations: 4 kB / 0.5945 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.857e-05/0.7864, allocations: 11.94 kB / 0.5946 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.499e-05/0.7865, allocations: 11.92 kB / 0.5946 GB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.7865, allocations: 4.25 kB / 0.5946 GB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.7882, allocations: 0.7701 MB / 0.5953 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002536/0.7885, allocations: 132.3 kB / 0.5954 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.7886, allocations: 15.95 kB / 0.5955 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/0.7892, allocations: 23.97 kB / 0.5955 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.7893, allocations: 35.95 kB / 0.5955 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.7894, allocations: 16 kB / 0.5955 GB, free: 13.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006174/0.79, allocations: 317.5 kB / 0.5958 GB, free: 13.49 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.625e-06/0.79, allocations: 4 kB / 0.5958 GB, free: 13.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001143/0.7912, allocations: 191.9 kB / 0.596 GB, free: 13.3 MB / 442.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.002458/0.7936, allocations: 1.969 MB / 0.5979 GB, free: 11.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.7954, allocations: 0.6183 MB / 0.5986 GB, free: 10.63 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.7955, allocations: 0 / 0.5986 GB, free: 10.63 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006412/0.7961, allocations: 249.6 kB / 0.5988 GB, free: 10.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009811/0.7971, allocations: 101.9 kB / 0.5989 GB, free: 10.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004458/0.8016, allocations: 1.328 MB / 0.6002 GB, free: 8.879 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009922/0.8027, allocations: 1.02 MB / 0.6012 GB, free: 7.832 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007119/0.8034, allocations: 267.3 kB / 0.6014 GB, free: 7.57 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8034, allocations: 0 / 0.6014 GB, free: 7.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.778/3.582, allocations: 11.73 MB / 0.6129 GB, free: 11.83 MB / 458.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)