Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 100.3 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.001321, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.521/2.521, allocations: 390.3 MB / 0.6653 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003387, allocations: 12 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8472/0.8475, allocations: 142.3 MB / 0.9536 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004617/0.8522, allocations: 3.033 MB / 0.9566 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002737/0.8549, allocations: 1.59 MB / 0.9581 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.8551, allocations: 2.375 kB / 0.9581 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.8553, allocations: 39.19 kB / 0.9582 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000471/0.8558, allocations: 132.9 kB / 0.9583 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005488/0.8564, allocations: 186.7 kB / 0.9585 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003431/0.8567, allocations: 229.1 kB / 0.9587 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007588/0.8575, allocations: 380.2 kB / 0.959 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/0.8577, allocations: 112.3 kB / 0.9592 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002855/0.858, allocations: 129 kB / 0.9593 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/0.8581, allocations: 12.38 kB / 0.9593 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000342/0.8584, allocations: 140.8 kB / 0.9594 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.8585, allocations: 80.66 kB / 0.9595 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.266e-05/0.8586, allocations: 71.58 kB / 0.9596 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.859, allocations: 342.2 kB / 0.9599 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.859, allocations: 0 / 0.9599 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.475e-06/0.859, allocations: 0 / 0.9599 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.8591, allocations: 1.469 kB / 0.9599 GB, free: 3.293 MB / 0.7169 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.00112/0.8602, allocations: 0.6088 MB / 0.9605 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.8602, allocations: 8.594 kB / 0.9605 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.173e-05/0.8603, allocations: 62.78 kB / 0.9606 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007435/0.8611, allocations: 100.8 kB / 0.9607 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.8614, allocations: 273.5 kB / 0.9609 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.8614, allocations: 16.88 kB / 0.9609 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.766e-05/0.8615, allocations: 21.44 kB / 0.961 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000767/0.8623, allocations: 423 kB / 0.9614 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.8623, allocations: 5.062 kB / 0.9614 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.628e-05/0.8624, allocations: 14.78 kB / 0.9614 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.369e-05/0.8624, allocations: 25.55 kB / 0.9614 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008703/0.8633, allocations: 415.2 kB / 0.9618 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.865, allocations: 1.615 MB / 0.9634 GB, free: 392 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.8662, allocations: 487.8 kB / 0.9638 GB, free: 128 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.8664, allocations: 94.94 kB / 0.9639 GB, free: 20 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006093/0.867, allocations: 282.4 kB / 0.9642 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.867, allocations: 0 / 0.9642 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28): time 0.002209/0.8692, allocations: 0.7761 MB / 0.965 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.996e-05/0.8693, allocations: 81.27 kB / 0.965 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.8697, allocations: 233.9 kB / 0.9653 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.8697, allocations: 31.86 kB / 0.9653 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.8699, allocations: 161.3 kB / 0.9654 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.87, allocations: 99.02 kB / 0.9655 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.87, allocations: 9.5 kB / 0.9655 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002036/0.8702, allocations: 334 kB / 0.9659 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/0.8707, allocations: 176.7 kB / 0.966 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/0.8713, allocations: 257 kB / 0.9663 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005659/0.8719, allocations: 234.9 kB / 0.9665 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8719, allocations: 0 / 0.9665 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001412/0.8733, allocations: 0.5568 MB / 0.967 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000455/0.8738, allocations: 0.9019 MB / 0.9679 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.8738, allocations: 2.219 kB / 0.9679 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002651/0.8741, allocations: 37.98 kB / 0.968 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004845/0.8746, allocations: 94.98 kB / 0.9681 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.8767, allocations: 1.512 MB / 0.9695 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.8772, allocations: 55.08 kB / 0.9696 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.241e-05/0.8772, allocations: 14.3 kB / 0.9696 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.8773, allocations: 3.938 kB / 0.9696 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001468/0.8787, allocations: 0.5007 MB / 0.9701 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.8788, allocations: 2.812 kB / 0.9701 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.879, allocations: 44.95 kB / 0.9701 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003993/0.8794, allocations: 93.02 kB / 0.9702 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.881, allocations: 1.492 MB / 0.9717 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.8814, allocations: 53.55 kB / 0.9717 GB, free: 9.453 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.8815, allocations: 13.98 kB / 0.9717 GB, free: 9.449 MB / 0.7325 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.0004201/0.8819, allocations: 238.5 kB / 0.972 GB, free: 9.227 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-05/0.882, allocations: 28 kB / 0.972 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.8835, allocations: 0.4899 MB / 0.9725 GB, free: 8.934 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.09e-05/0.8835, allocations: 12.62 kB / 0.9725 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.8835, allocations: 7.938 kB / 0.9725 GB, free: 8.918 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.8836, allocations: 1.25 kB / 0.9725 GB, free: 8.918 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.8846, allocations: 0.5558 MB / 0.973 GB, free: 8.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.8846, allocations: 1.312 kB / 0.973 GB, free: 8.418 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004248/0.8851, allocations: 91.66 kB / 0.9731 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.8852, allocations: 37.78 kB / 0.9732 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.8853, allocations: 7.344 kB / 0.9732 GB, free: 8.355 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/0.8868, allocations: 1.419 MB / 0.9746 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.8868, allocations: 1.312 kB / 0.9746 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.8881, allocations: 0.5971 MB / 0.9751 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.8884, allocations: 131.4 kB / 0.9753 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.8884, allocations: 7.188 kB / 0.9753 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.8887, allocations: 51.45 kB / 0.9753 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.8889, allocations: 29.58 kB / 0.9753 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.441e-05/0.8889, allocations: 11.31 kB / 0.9754 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002195/0.8891, allocations: 166.7 kB / 0.9755 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8892, allocations: 1.062 kB / 0.9755 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007985/0.89, allocations: 128.1 kB / 0.9756 GB, free: 6.211 MB / 0.7325 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.001764/0.8917, allocations: 1.367 MB / 0.977 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002075/0.8938, allocations: 1.007 MB / 0.978 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.8938, allocations: 0.6875 kB / 0.978 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006633/0.8945, allocations: 339 kB / 0.9783 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.8949, allocations: 48.33 kB / 0.9783 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.8993, allocations: 3.327 MB / 0.9816 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.8997, allocations: 0.7924 MB / 0.9824 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003198/0.9, allocations: 99.19 kB / 0.9824 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.9002, allocations: 82.72 kB / 0.9825 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of SimCode: time 9.82e-07/0.9002, allocations: 0 / 0.9825 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01996/0.9202, allocations: 6.567 MB / 0.9889 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/0.9204, allocations: 231.3 kB / 0.9892 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.8, allocations: 0 / 0.9892 GB, free: 10.56 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat