Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_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.001102/0.001102, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.564/1.564, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0009005/0.0009005, allocations: 82.72 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1587/0.1587, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.23e-05/4.233e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 56.32 MB / 474.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.4747, allocations: 99.3 MB / 0.56 GB, free: 3.406 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.475, allocations: 78.58 kB / 0.5601 GB, free: 3.371 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05/0.525, allocations: 19.29 MB / 0.5789 GB, free: 2.754 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.5251, allocations: 0 / 0.5789 GB, free: 2.754 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.909e-05/0.5251, allocations: 23.94 kB / 0.5789 GB, free: 2.73 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.001559/0.5267, allocations: 0.9026 MB / 0.5798 GB, free: 1.824 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.5267, allocations: 8.031 kB / 0.5798 GB, free: 1.816 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.5269, allocations: 137.2 kB / 0.58 GB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006055/0.5275, allocations: 138.9 kB / 0.5801 GB, free: 1.586 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.5294, allocations: 0.8689 MB / 0.5809 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.334e-05/0.5294, allocations: 58.94 kB / 0.581 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.5295, allocations: 75.77 kB / 0.5811 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.531, allocations: 1.085 MB / 0.5821 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/0.5311, allocations: 7.938 kB / 0.5821 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.413e-05/0.5311, allocations: 34.81 kB / 0.5822 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-05/0.5312, allocations: 49.23 kB / 0.5822 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.5324, allocations: 0.7785 MB / 0.583 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004863/0.5373, allocations: 5.006 MB / 0.5879 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006189/0.5379, allocations: 404.6 kB / 0.5883 GB, free: 10.19 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000291/0.5382, allocations: 207 kB / 0.5885 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.654e-05/0.5383, allocations: 12.48 kB / 0.5885 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.5383, allocations: 38.41 kB / 0.5885 GB, free: 9.996 MB / 394.7 MB Notification: Performance of pre-optimization done (n=47): time 2.915e-06/0.5383, allocations: 0 / 0.5885 GB, free: 9.996 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.001632/0.5399, allocations: 0.9153 MB / 0.5894 GB, free: 9.242 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.54, allocations: 85.14 kB / 0.5895 GB, free: 9.141 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004755/0.5405, allocations: 441.5 kB / 0.5899 GB, free: 8.781 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.5405, allocations: 32.52 kB / 0.5899 GB, free: 8.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.5408, allocations: 449 kB / 0.5904 GB, free: 8.383 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.541, allocations: 171.5 kB / 0.5905 GB, free: 8.234 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.541, allocations: 16.44 kB / 0.5905 GB, free: 8.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.5412, allocations: 365.4 kB / 0.5909 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/0.5415, allocations: 233.9 kB / 0.5911 GB, free: 7.723 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/0.5421, allocations: 0.6141 MB / 0.5917 GB, free: 7.012 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000497/0.5426, allocations: 364.4 kB / 0.5921 GB, free: 6.738 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.5426, allocations: 8 kB / 0.5921 GB, free: 6.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001239/0.5439, allocations: 0.8788 MB / 0.5929 GB, free: 6.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.5439, allocations: 15.95 kB / 0.5929 GB, free: 6.004 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.544, allocations: 12 kB / 0.5929 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.068e-05/0.544, allocations: 20 kB / 0.593 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/0.5447, allocations: 205.8 kB / 0.5932 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.507e-05/0.5447, allocations: 31.92 kB / 0.5932 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003876/0.5451, allocations: 52.38 kB / 0.5932 GB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.5451, allocations: 43.81 kB / 0.5933 GB, free: 5.672 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.0001386/0.5453, allocations: 159.4 kB / 0.5934 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.091e-05/0.5454, allocations: 51.34 kB / 0.5935 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009195/0.5463, allocations: 0.56 MB / 0.594 GB, free: 5.066 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.21e-05/0.5463, allocations: 11.94 kB / 0.594 GB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.5463, allocations: 4 kB / 0.594 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.5464, allocations: 3.984 kB / 0.5941 GB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.5482, allocations: 1.331 MB / 0.5954 GB, free: 3.922 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.5483, allocations: 0 / 0.5954 GB, free: 3.922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.5487, allocations: 107.2 kB / 0.5955 GB, free: 3.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.5487, allocations: 4 kB / 0.5955 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.5487, allocations: 15.17 kB / 0.5955 GB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.794e-06/0.5487, allocations: 11.94 kB / 0.5955 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.5487, allocations: 7.984 kB / 0.5955 GB, free: 3.789 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008362/0.5496, allocations: 0.7715 MB / 0.5962 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.5497, allocations: 128.2 kB / 0.5964 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.017e-05/0.5498, allocations: 15.89 kB / 0.5964 GB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.55, allocations: 27.22 kB / 0.5964 GB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.518e-05/0.5501, allocations: 31.77 kB / 0.5964 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.5501, allocations: 11.25 kB / 0.5965 GB, free: 2.844 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000319/0.5505, allocations: 321.9 kB / 0.5968 GB, free: 2.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.382e-06/0.5505, allocations: 7.938 kB / 0.5968 GB, free: 2.582 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006526/0.5511, allocations: 191.9 kB / 0.5969 GB, free: 2.414 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.001393/0.5525, allocations: 1.968 MB / 0.5989 GB, free: 0.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008382/0.5534, allocations: 0.6125 MB / 0.5995 GB, free: 32 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5534, allocations: 4 kB / 0.5995 GB, free: 28 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003393/0.5537, allocations: 254.7 kB / 0.5997 GB, free: 15.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.5542, allocations: 98.41 kB / 0.5998 GB, free: 15.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.5564, allocations: 1.247 MB / 0.601 GB, free: 14.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006069/0.557, allocations: 1.015 MB / 0.602 GB, free: 13.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005309/0.5575, allocations: 224.9 kB / 0.6022 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002767/0.5578, allocations: 253.8 kB / 0.6025 GB, free: 13.34 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5578, allocations: 0 / 0.6025 GB, free: 13.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.5813, allocations: 10.84 MB / 0.6131 GB, free: 2.543 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.5815, allocations: 159.2 kB / 0.6132 GB, free: 2.309 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.272/2.854, allocations: 0 / 0.6132 GB, free: 2.309 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat does not exist to compare? outputFormat=mat