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.367/2.367, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.001523/0.001523, allocations: 180.9 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.713/1.713, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.001073/0.001074, allocations: 95.47 kB / 0.9317 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.293e-05/4.309e-05, allocations: 8 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3052, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.067/1.372, allocations: 173.7 MB / 1.388 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/1.373, allocations: 98.17 kB / 1.389 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.04998/1.423, allocations: 19.27 MB / 1.407 GB, free: 13.53 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.442e-06/1.423, allocations: 0 / 1.407 GB, free: 13.53 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.799e-05/1.423, allocations: 4 kB / 1.407 GB, free: 13.52 MB / 0.8698 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.001349/1.424, allocations: 0.6136 MB / 1.408 GB, free: 12.88 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/1.424, allocations: 12.03 kB / 1.408 GB, free: 12.87 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/1.425, allocations: 65.27 kB / 1.408 GB, free: 12.81 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009186/1.425, allocations: 103.5 kB / 1.408 GB, free: 12.71 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/1.426, allocations: 268.8 kB / 1.408 GB, free: 12.43 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/1.426, allocations: 23.23 kB / 1.408 GB, free: 12.41 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.324e-05/1.426, allocations: 19.44 kB / 1.408 GB, free: 12.39 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006144/1.427, allocations: 367.8 kB / 1.409 GB, free: 12.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/1.427, allocations: 3.938 kB / 1.409 GB, free: 12.09 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/1.427, allocations: 10.75 kB / 1.409 GB, free: 12.09 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-05/1.427, allocations: 20.36 kB / 1.409 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/1.427, allocations: 321 kB / 1.409 GB, free: 11.86 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/1.429, allocations: 1.647 MB / 1.411 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007925/1.43, allocations: 397.5 kB / 1.411 GB, free: 9.988 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/1.431, allocations: 163.1 kB / 1.411 GB, free: 9.871 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001582/1.431, allocations: 85.09 kB / 1.411 GB, free: 9.77 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003531/1.431, allocations: 233.5 kB / 1.412 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=27): time 1.854e-06/1.431, allocations: 0 / 1.412 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of matching and sorting (n=28): time 0.0009642/1.432, allocations: 433.8 kB / 1.412 GB, free: 9.227 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/1.432, allocations: 88.59 kB / 1.412 GB, free: 9.125 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/1.432, allocations: 195.6 kB / 1.412 GB, free: 8.949 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/1.432, allocations: 44.88 kB / 1.412 GB, free: 8.902 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/1.432, allocations: 163.5 kB / 1.413 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/1.433, allocations: 95.02 kB / 1.413 GB, free: 8.684 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.14e-05/1.433, allocations: 7.5 kB / 1.413 GB, free: 8.68 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001301/1.433, allocations: 337.4 kB / 1.413 GB, free: 8.352 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/1.433, allocations: 136 kB / 1.413 GB, free: 8.266 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/1.433, allocations: 214.4 kB / 1.413 GB, free: 8.078 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/1.434, allocations: 186.8 kB / 1.413 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/1.434, allocations: 0 / 1.413 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000801/1.434, allocations: 473.9 kB / 1.414 GB, free: 7.574 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004022/1.435, allocations: 0.9009 MB / 1.415 GB, free: 6.617 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/1.435, allocations: 4.047 kB / 1.415 GB, free: 6.613 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/1.435, allocations: 48.36 kB / 1.415 GB, free: 6.566 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/1.436, allocations: 91.11 kB / 1.415 GB, free: 6.48 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/1.437, allocations: 1.497 MB / 1.416 GB, free: 4.934 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/1.437, allocations: 54.92 kB / 1.416 GB, free: 4.887 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/1.437, allocations: 15.62 kB / 1.416 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/1.437, allocations: 7.953 kB / 1.416 GB, free: 4.867 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006892/1.438, allocations: 408.6 kB / 1.417 GB, free: 4.562 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/1.438, allocations: 4 kB / 1.417 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001313/1.438, allocations: 43.98 kB / 1.417 GB, free: 4.52 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003681/1.439, allocations: 83.19 kB / 1.417 GB, free: 4.441 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/1.44, allocations: 1.484 MB / 1.418 GB, free: 2.918 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003231/1.44, allocations: 42.69 kB / 1.418 GB, free: 2.879 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/1.44, allocations: 19.36 kB / 1.418 GB, free: 2.863 MB / 0.8698 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 () * 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.0001416/1.44, allocations: 135.1 kB / 1.419 GB, free: 2.734 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.272e-05/1.44, allocations: 23.72 kB / 1.419 GB, free: 2.711 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007177/1.441, allocations: 394.5 kB / 1.419 GB, free: 2.426 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/1.441, allocations: 7.984 kB / 1.419 GB, free: 2.418 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/1.441, allocations: 0 / 1.419 GB, free: 2.418 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.441, allocations: 7.938 kB / 1.419 GB, free: 2.41 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007147/1.442, allocations: 0.5634 MB / 1.42 GB, free: 1.875 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/1.442, allocations: 4 kB / 1.42 GB, free: 1.871 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003949/1.442, allocations: 75.98 kB / 1.42 GB, free: 1.797 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/1.442, allocations: 46.8 kB / 1.42 GB, free: 1.754 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/1.442, allocations: 11.05 kB / 1.42 GB, free: 1.746 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/1.444, allocations: 1.409 MB / 1.421 GB, free: 292 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.444, allocations: 7.969 kB / 1.421 GB, free: 284 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006967/1.444, allocations: 0.4939 MB / 1.422 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/1.444, allocations: 135.1 kB / 1.422 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.544e-05/1.445, allocations: 14.88 kB / 1.422 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003251/1.445, allocations: 39.33 kB / 1.422 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/1.445, allocations: 38.91 kB / 1.422 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/1.445, allocations: 11.06 kB / 1.422 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001785/1.445, allocations: 167.9 kB / 1.422 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.01e-07/1.445, allocations: 0 / 1.422 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006098/1.446, allocations: 148.3 kB / 1.422 GB, free: 15.34 MB / 0.8855 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) * 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.00127/1.447, allocations: 1.273 MB / 1.423 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001375/1.449, allocations: 0.8691 MB / 1.424 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/1.449, allocations: 0 / 1.424 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004646/1.449, allocations: 296.2 kB / 1.424 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/1.449, allocations: 47.16 kB / 1.425 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/1.451, allocations: 0.5394 MB / 1.425 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/1.451, allocations: 0.7988 MB / 1.426 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0003744/1.452, allocations: 97.98 kB / 1.426 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/1.452, allocations: 88.39 kB / 1.426 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of SimCode: time 6.21e-07/1.452, allocations: 0 / 1.426 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/1.475, allocations: 6.864 MB / 1.433 GB, free: 5.008 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003286/1.476, allocations: 203.7 kB / 1.433 GB, free: 4.789 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/3.431, allocations: 4.312 kB / 1.433 GB, free: 4.789 MB / 0.8855 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