Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.203/2.203, allocations: 387.4 MB / 394.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009804/0.0009805, allocations: 180.8 kB / 487.4 MB, free: 5.066 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 221.5 MB / 0.7824 GB, free: 1.027 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008992/0.0008994, allocations: 98.81 kB / 0.9219 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.748e-05/1.75e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2411, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.727/3.968, allocations: 1.764 GB / 2.97 GB, free: 119.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/3.968, allocations: 96.45 kB / 2.97 GB, free: 119.1 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.1642/4.132, allocations: 74.35 MB / 3.043 GB, free: 44.41 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.044e-06/4.132, allocations: 0 / 3.043 GB, free: 44.41 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.754e-05/4.133, allocations: 40 kB / 3.043 GB, free: 44.37 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 386 * Number of variables: 386 Notification: Performance of Generate backend data structure: time 0.002696/4.135, allocations: 1.595 MB / 3.044 GB, free: 42.71 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/4.135, allocations: 8.031 kB / 3.044 GB, free: 42.71 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005167/4.14, allocations: 0.8409 MB / 3.045 GB, free: 41.86 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/4.142, allocations: 0.8961 MB / 3.046 GB, free: 40.92 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/4.142, allocations: 48 kB / 3.046 GB, free: 40.88 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/4.142, allocations: 87.98 kB / 3.046 GB, free: 40.79 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002483/4.144, allocations: 1.884 MB / 3.048 GB, free: 38.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/4.147, allocations: 1.542 MB / 3.05 GB, free: 37.29 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/4.147, allocations: 0 / 3.05 GB, free: 37.29 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/4.147, allocations: 4 kB / 3.05 GB, free: 37.29 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-05/4.147, allocations: 70.84 kB / 3.05 GB, free: 37.21 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008258/4.155, allocations: 5.956 MB / 3.056 GB, free: 31.06 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/4.157, allocations: 1.222 MB / 3.057 GB, free: 29.82 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007549/4.158, allocations: 0.5831 MB / 3.057 GB, free: 29.24 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005702/4.158, allocations: 490.9 kB / 3.058 GB, free: 28.66 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009796/4.159, allocations: 0.7554 MB / 3.058 GB, free: 27.88 MB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 2.795e-06/4.159, allocations: 0 / 3.058 GB, free: 27.88 MB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.00464/4.164, allocations: 1.73 MB / 3.06 GB, free: 26.14 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/4.164, allocations: 347.5 kB / 3.061 GB, free: 25.72 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007337/4.165, allocations: 0.6566 MB / 3.061 GB, free: 25.05 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.72e-05/4.165, allocations: 33.77 kB / 3.061 GB, free: 25.02 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003356/4.165, allocations: 0.6089 MB / 3.062 GB, free: 24.39 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/4.165, allocations: 413.7 kB / 3.062 GB, free: 23.98 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.088e-05/4.165, allocations: 0 / 3.062 GB, free: 23.98 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.7e-05/4.165, allocations: 357.9 kB / 3.063 GB, free: 23.63 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/4.166, allocations: 442.5 kB / 3.063 GB, free: 23.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/4.167, allocations: 0.6313 MB / 3.064 GB, free: 22.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00344/4.17, allocations: 1.056 MB / 3.065 GB, free: 21.45 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/4.17, allocations: 0 / 3.065 GB, free: 21.45 MB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004631/4.175, allocations: 1.816 MB / 3.066 GB, free: 19.62 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001617/4.175, allocations: 1.052 MB / 3.067 GB, free: 18.49 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/4.175, allocations: 7.984 kB / 3.067 GB, free: 18.48 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000152/4.175, allocations: 24.94 kB / 3.067 GB, free: 18.45 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/4.177, allocations: 347.4 kB / 3.068 GB, free: 18.11 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002259/4.177, allocations: 0.5483 MB / 3.068 GB, free: 17.54 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/4.179, allocations: 159 kB / 3.068 GB, free: 17.38 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/4.179, allocations: 59.95 kB / 3.068 GB, free: 17.32 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.662e-06/4.179, allocations: 0 / 3.068 GB, free: 17.32 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004266/4.183, allocations: 1.662 MB / 3.07 GB, free: 15.66 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/4.183, allocations: 4 kB / 3.07 GB, free: 15.66 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.467e-06/4.183, allocations: 8 kB / 3.07 GB, free: 15.65 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/4.185, allocations: 335.8 kB / 3.07 GB, free: 15.32 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/4.185, allocations: 8 kB / 3.07 GB, free: 15.31 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/4.186, allocations: 151 kB / 3.071 GB, free: 15.16 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/4.186, allocations: 63.91 kB / 3.071 GB, free: 15.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002462/4.186, allocations: 134.4 kB / 3.071 GB, free: 14.96 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004308/4.191, allocations: 1.73 MB / 3.072 GB, free: 13.22 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/4.191, allocations: 114.7 kB / 3.073 GB, free: 13.11 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005232/4.196, allocations: 2.11 MB / 3.075 GB, free: 10.98 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/4.196, allocations: 16 kB / 3.075 GB, free: 10.97 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/4.196, allocations: 0 / 3.075 GB, free: 10.97 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/4.196, allocations: 7.969 kB / 3.075 GB, free: 10.96 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006433/4.203, allocations: 3.785 MB / 3.078 GB, free: 7.102 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/4.203, allocations: 4 kB / 3.078 GB, free: 7.098 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/4.204, allocations: 319.6 kB / 3.079 GB, free: 6.785 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/4.204, allocations: 32.84 kB / 3.079 GB, free: 6.75 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.674e-05/4.204, allocations: 23.97 kB / 3.079 GB, free: 6.727 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005983/4.205, allocations: 1.229 MB / 3.08 GB, free: 5.375 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/4.205, allocations: 7.969 kB / 3.08 GB, free: 5.367 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004402/4.209, allocations: 1.984 MB / 3.082 GB, free: 3.324 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004868/4.21, allocations: 407.1 kB / 3.082 GB, free: 2.906 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/4.21, allocations: 7.953 kB / 3.082 GB, free: 2.898 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/4.211, allocations: 115.9 kB / 3.082 GB, free: 2.785 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/4.212, allocations: 93.17 kB / 3.082 GB, free: 2.695 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.75e-05/4.212, allocations: 47.97 kB / 3.083 GB, free: 2.648 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005468/4.212, allocations: 0.5343 MB / 3.083 GB, free: 2.117 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.2e-07/4.212, allocations: 0 / 3.083 GB, free: 2.117 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001622/4.214, allocations: 0.7157 MB / 3.084 GB, free: 1.398 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.5418/4.756, allocations: 3.289 MB / 3.087 GB, free: 388.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003241/4.759, allocations: 1.846 MB / 3.089 GB, free: 388.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/4.759, allocations: 1.594 kB / 3.089 GB, free: 388.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/4.76, allocations: 0.7548 MB / 3.089 GB, free: 388.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/4.762, allocations: 257.5 kB / 3.09 GB, free: 388.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/4.766, allocations: 2.252 MB / 3.092 GB, free: 387.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008992/4.767, allocations: 1.275 MB / 3.093 GB, free: 387 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00283/4.77, allocations: 0.6093 MB / 3.094 GB, free: 387 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008842/4.771, allocations: 0.5847 MB / 3.094 GB, free: 387 MB / 1.151 GB Notification: Performance of SimCode: time 6.21e-07/4.771, allocations: 0 / 3.094 GB, free: 387 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0637/4.835, allocations: 29.5 MB / 3.123 GB, free: 385.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001378/4.835, allocations: 183.3 kB / 3.123 GB, free: 385.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.879/7.714, allocations: 0 / 3.123 GB, free: 385.3 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat does not exist to compare? outputFormat=mat