Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.509/2.509, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001101/0.001101, allocations: 176 kB / 0.4901 GB, free: 2.246 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.581/1.581, allocations: 223.1 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009602/0.0009606, allocations: 99.95 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003932, allocations: 10.47 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3138, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2284/0.5422, allocations: 173.8 MB / 1.399 GB, free: 11.63 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.5426, allocations: 95.94 kB / 1.399 GB, free: 11.54 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.04962/0.5922, allocations: 19.39 MB / 1.418 GB, free: 7.961 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.863e-06/0.5923, allocations: 0 / 1.418 GB, free: 7.961 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.767e-05/0.5923, allocations: 8 kB / 1.418 GB, free: 7.953 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001469/0.5938, allocations: 0.6457 MB / 1.419 GB, free: 7.254 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.871e-05/0.5939, allocations: 12.03 kB / 1.419 GB, free: 7.242 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.594, allocations: 58.48 kB / 1.419 GB, free: 7.176 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008784/0.5949, allocations: 103.5 kB / 1.419 GB, free: 7.074 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000478/0.5954, allocations: 270.5 kB / 1.419 GB, free: 6.77 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.5954, allocations: 16.44 kB / 1.419 GB, free: 6.754 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.5955, allocations: 24 kB / 1.419 GB, free: 6.73 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008649/0.5964, allocations: 418.5 kB / 1.419 GB, free: 6.285 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.5964, allocations: 0 / 1.419 GB, free: 6.285 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.5964, allocations: 15.97 kB / 1.42 GB, free: 6.27 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.052e-05/0.5965, allocations: 24.36 kB / 1.42 GB, free: 6.242 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009476/0.5975, allocations: 417.4 kB / 1.42 GB, free: 5.836 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.5998, allocations: 1.65 MB / 1.422 GB, free: 4.059 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.601, allocations: 489.2 kB / 1.422 GB, free: 3.559 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001976/0.6012, allocations: 85.11 kB / 1.422 GB, free: 3.457 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005905/0.6018, allocations: 278.9 kB / 1.422 GB, free: 3.168 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=27): time 2.705e-06/0.6019, allocations: 0 / 1.422 GB, free: 3.168 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28): time 0.00205/0.6039, allocations: 0.7819 MB / 1.423 GB, free: 2.359 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.604, allocations: 85.3 kB / 1.423 GB, free: 2.258 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.6042, allocations: 200.1 kB / 1.423 GB, free: 2.055 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.704e-05/0.6043, allocations: 37.62 kB / 1.423 GB, free: 2.012 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.6044, allocations: 164.3 kB / 1.424 GB, free: 1.848 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 9.032e-05/0.6045, allocations: 94.59 kB / 1.424 GB, free: 1.754 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.6045, allocations: 4 kB / 1.424 GB, free: 1.75 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.6047, allocations: 342.8 kB / 1.424 GB, free: 1.406 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.6051, allocations: 180.2 kB / 1.424 GB, free: 1.23 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000461/0.6056, allocations: 256.8 kB / 1.424 GB, free: 0.9492 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.6061, allocations: 238.3 kB / 1.425 GB, free: 0.7109 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.6061, allocations: 0 / 1.425 GB, free: 0.7109 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001181/0.6073, allocations: 0.5635 MB / 1.425 GB, free: 140 kB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.6684/1.276, allocations: 0.9014 MB / 1.426 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/1.276, allocations: 2.469 kB / 1.426 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003899/1.276, allocations: 41.12 kB / 1.426 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005525/1.277, allocations: 92.03 kB / 1.426 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/1.278, allocations: 1.506 MB / 1.428 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004234/1.278, allocations: 59.34 kB / 1.428 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.624e-05/1.279, allocations: 13.09 kB / 1.428 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/1.279, allocations: 3.562 kB / 1.428 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001048/1.28, allocations: 0.4982 MB / 1.428 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/1.28, allocations: 3.484 kB / 1.428 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001267/1.28, allocations: 43.08 kB / 1.428 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003595/1.28, allocations: 88.69 kB / 1.428 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009468/1.281, allocations: 1.496 MB / 1.43 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003252/1.281, allocations: 51.97 kB / 1.43 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/1.281, allocations: 16.62 kB / 1.43 GB, free: 179.8 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002145/1.282, allocations: 239.6 kB / 1.43 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.829e-05/1.282, allocations: 26.09 kB / 1.43 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/1.283, allocations: 492.6 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/1.283, allocations: 5.625 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/1.283, allocations: 3.953 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.319e-06/1.283, allocations: 7.141 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006239/1.283, allocations: 0.5657 MB / 1.431 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/1.283, allocations: 2.781 kB / 1.431 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003842/1.284, allocations: 80.19 kB / 1.431 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001154/1.284, allocations: 44.11 kB / 1.431 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/1.284, allocations: 10 kB / 1.431 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008792/1.285, allocations: 1.421 MB / 1.433 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.285, allocations: 5.375 kB / 1.433 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/1.286, allocations: 0.5958 MB / 1.433 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/1.286, allocations: 133.8 kB / 1.433 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/1.286, allocations: 6.016 kB / 1.433 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/1.286, allocations: 40.8 kB / 1.433 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/1.287, allocations: 33.36 kB / 1.433 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/1.287, allocations: 12.53 kB / 1.434 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001748/1.287, allocations: 171.6 kB / 1.434 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.4e-07/1.287, allocations: 0 / 1.434 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006049/1.287, allocations: 147 kB / 1.434 GB, free: 177.5 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001376/1.289, allocations: 1.372 MB / 1.435 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001924/1.291, allocations: 1.014 MB / 1.436 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.291, allocations: 1.656 kB / 1.436 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006244/1.291, allocations: 339.4 kB / 1.436 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/1.292, allocations: 37.67 kB / 1.436 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003715/1.295, allocations: 3.352 MB / 1.44 GB, free: 174 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/1.296, allocations: 0.7954 MB / 1.441 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003429/1.296, allocations: 93.44 kB / 1.441 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/1.296, allocations: 84.3 kB / 1.441 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of SimCode: time 1.062e-06/1.296, allocations: 4 kB / 1.441 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/1.32, allocations: 6.572 MB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/1.32, allocations: 239.4 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.14/3.46, allocations: 1.219 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat