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.232/2.232, allocations: 390.5 MB / 398 MB, free: 10.93 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.001096/0.001096, allocations: 176.8 kB / 491.2 MB, free: 1.543 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.568/1.568, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001102/0.001102, allocations: 103 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.886e-05/1.888e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3036, allocations: 143 MB / 1.212 GB, free: 39.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.07/1.373, allocations: 173 MB / 1.381 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/1.374, allocations: 92.39 kB / 1.381 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04284/1.417, allocations: 19.21 MB / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.383e-06/1.417, allocations: 0 / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.435e-05/1.417, allocations: 4 kB / 1.4 GB, free: 25.29 MB / 0.8386 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.001383/1.418, allocations: 0.618 MB / 1.401 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/1.418, allocations: 12.03 kB / 1.401 GB, free: 24.63 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009374/1.419, allocations: 99.48 kB / 1.401 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/1.42, allocations: 272.1 kB / 1.401 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/1.42, allocations: 15.98 kB / 1.401 GB, free: 24.24 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.507e-05/1.42, allocations: 12 kB / 1.401 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004439/1.42, allocations: 241.5 kB / 1.401 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005157/1.421, allocations: 341.2 kB / 1.402 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/1.421, allocations: 4 kB / 1.402 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/1.421, allocations: 7.984 kB / 1.402 GB, free: 23.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.135e-05/1.421, allocations: 23.48 kB / 1.402 GB, free: 23.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/1.423, allocations: 1.592 MB / 1.403 GB, free: 22.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000716/1.424, allocations: 382 kB / 1.404 GB, free: 21.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/1.424, allocations: 147.8 kB / 1.404 GB, free: 21.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001794/1.424, allocations: 93.09 kB / 1.404 GB, free: 21.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/1.424, allocations: 219.5 kB / 1.404 GB, free: 21.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 2.194e-06/1.424, allocations: 0 / 1.404 GB, free: 21.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0009333/1.425, allocations: 426.3 kB / 1.405 GB, free: 21.22 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/1.425, allocations: 87.92 kB / 1.405 GB, free: 21.12 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/1.425, allocations: 187.4 kB / 1.405 GB, free: 20.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/1.426, allocations: 29.69 kB / 1.405 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/1.426, allocations: 175 kB / 1.405 GB, free: 20.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.218e-05/1.426, allocations: 89.16 kB / 1.405 GB, free: 20.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.983e-05/1.426, allocations: 0 / 1.405 GB, free: 20.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.426, allocations: 332.9 kB / 1.405 GB, free: 20.37 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/1.426, allocations: 128.5 kB / 1.406 GB, free: 20.29 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/1.426, allocations: 201.3 kB / 1.406 GB, free: 20.12 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/1.427, allocations: 155.3 kB / 1.406 GB, free: 20.02 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.427, allocations: 3.953 kB / 1.406 GB, free: 20.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006952/1.427, allocations: 428.6 kB / 1.406 GB, free: 19.69 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005266/1.428, allocations: 0.9109 MB / 1.407 GB, free: 18.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.428, allocations: 0 / 1.407 GB, free: 18.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/1.428, allocations: 47.8 kB / 1.407 GB, free: 18.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/1.428, allocations: 87.86 kB / 1.407 GB, free: 18.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/1.43, allocations: 1.446 MB / 1.409 GB, free: 17.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003374/1.43, allocations: 43.8 kB / 1.409 GB, free: 17.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/1.43, allocations: 15.44 kB / 1.409 GB, free: 17.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/1.43, allocations: 4 kB / 1.409 GB, free: 17.06 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006179/1.431, allocations: 362.4 kB / 1.409 GB, free: 16.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.431, allocations: 4 kB / 1.409 GB, free: 16.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001151/1.431, allocations: 40.44 kB / 1.409 GB, free: 16.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/1.431, allocations: 87.47 kB / 1.409 GB, free: 16.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/1.433, allocations: 1.419 MB / 1.411 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/1.433, allocations: 51.11 kB / 1.411 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/1.433, allocations: 12 kB / 1.411 GB, free: 15.16 MB / 0.8386 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.0001621/1.433, allocations: 114.9 kB / 1.411 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006155/1.434, allocations: 350.9 kB / 1.411 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/1.434, allocations: 27.72 kB / 1.411 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006581/1.435, allocations: 389.3 kB / 1.412 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/1.435, allocations: 4 kB / 1.412 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/1.435, allocations: 7.938 kB / 1.412 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/1.435, allocations: 7.938 kB / 1.412 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005731/1.435, allocations: 0.5115 MB / 1.412 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/1.435, allocations: 4 kB / 1.412 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/1.436, allocations: 79.42 kB / 1.412 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000108/1.436, allocations: 40.23 kB / 1.412 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.129e-05/1.436, allocations: 3.938 kB / 1.412 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009749/1.437, allocations: 1.353 MB / 1.414 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.437, allocations: 8 kB / 1.414 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/1.437, allocations: 493.9 kB / 1.414 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/1.437, allocations: 136.2 kB / 1.414 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.77e-05/1.438, allocations: 7.984 kB / 1.414 GB, free: 11.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/1.438, allocations: 31.95 kB / 1.414 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/1.438, allocations: 43.34 kB / 1.414 GB, free: 11.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/1.438, allocations: 4 kB / 1.414 GB, free: 11.78 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001536/1.438, allocations: 163.2 kB / 1.414 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.438, allocations: 0 / 1.414 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006278/1.439, allocations: 127.9 kB / 1.415 GB, free: 11.52 MB / 0.8386 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.001259/1.44, allocations: 1.262 MB / 1.416 GB, free: 10.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001307/1.441, allocations: 0.823 MB / 1.417 GB, free: 9.586 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/1.441, allocations: 3.938 kB / 1.417 GB, free: 9.582 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004204/1.442, allocations: 275.2 kB / 1.417 GB, free: 9.355 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/1.442, allocations: 32.84 kB / 1.417 GB, free: 9.332 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/1.444, allocations: 0.531 MB / 1.417 GB, free: 8.816 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/1.444, allocations: 0.7921 MB / 1.418 GB, free: 8.008 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003715/1.445, allocations: 106 kB / 1.418 GB, free: 7.902 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/1.445, allocations: 87.55 kB / 1.418 GB, free: 7.871 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.445, allocations: 0 / 1.418 GB, free: 7.871 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03376/1.478, allocations: 6.301 MB / 1.424 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/1.479, allocations: 185.3 kB / 1.425 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/3.543, allocations: 0 / 1.425 GB, free: 1.418 MB / 0.8386 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