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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.003043/0.003043, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.99/2.99, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.465/5.465, allocations: 409.2 MB / 0.6838 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007347/0.0007352, allocations: 8 kB / 0.8375 GB, free: 6.582 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.689/1.69, allocations: 146.8 MB / 0.9809 GB, free: 6.336 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.007908/1.698, allocations: 3.042 MB / 0.9838 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005033/1.703, allocations: 1.587 MB / 0.9854 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005154/1.703, allocations: 7.938 kB / 0.9854 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004145/1.704, allocations: 35.77 kB / 0.9854 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001058/1.705, allocations: 131.6 kB / 0.9856 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001329/1.706, allocations: 191.4 kB / 0.9857 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000986/1.707, allocations: 223.5 kB / 0.986 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00148/1.709, allocations: 386.5 kB / 0.9863 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005483/1.709, allocations: 111.6 kB / 0.9864 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006992/1.71, allocations: 127.5 kB / 0.9865 GB, free: 484 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001516/1.71, allocations: 12 kB / 0.9866 GB, free: 472 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007287/1.711, allocations: 143.8 kB / 0.9867 GB, free: 328 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002408/1.711, allocations: 79.78 kB / 0.9868 GB, free: 248 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002298/1.711, allocations: 69.58 kB / 0.9868 GB, free: 172 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001213/1.713, allocations: 345.3 kB / 0.9872 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/1.713, allocations: 4 kB / 0.9872 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.385e-06/1.713, allocations: 0 / 0.9872 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.267e-05/1.713, allocations: 0 / 0.9872 GB, free: 15.83 MB / 0.7481 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.002389/1.715, allocations: 0.6058 MB / 0.9878 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 8.855e-05/1.715, allocations: 8.031 kB / 0.9878 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/1.715, allocations: 54.55 kB / 0.9878 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001452/1.717, allocations: 103.5 kB / 0.9879 GB, free: 15 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006562/1.718, allocations: 270.5 kB / 0.9882 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.381e-05/1.718, allocations: 16.42 kB / 0.9882 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/1.718, allocations: 31.89 kB / 0.9882 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/1.719, allocations: 422.6 kB / 0.9886 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/1.719, allocations: 7.938 kB / 0.9886 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.405e-05/1.719, allocations: 7.984 kB / 0.9886 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.862e-05/1.719, allocations: 28.36 kB / 0.9887 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/1.721, allocations: 408.8 kB / 0.9891 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003558/1.724, allocations: 1.615 MB / 0.9906 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/1.726, allocations: 490.5 kB / 0.9911 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000253/1.726, allocations: 85.09 kB / 0.9912 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009718/1.727, allocations: 278.5 kB / 0.9915 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=27): time 3.978e-06/1.727, allocations: 7.938 kB / 0.9915 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28): time 0.003062/1.73, allocations: 0.7863 MB / 0.9922 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/1.731, allocations: 85.11 kB / 0.9923 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/1.731, allocations: 221 kB / 0.9925 GB, free: 9.98 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.239e-05/1.731, allocations: 29.7 kB / 0.9925 GB, free: 9.945 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/1.731, allocations: 164.4 kB / 0.9927 GB, free: 9.781 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/1.731, allocations: 98.62 kB / 0.9928 GB, free: 9.684 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.88e-05/1.731, allocations: 8 kB / 0.9928 GB, free: 9.676 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002059/1.732, allocations: 334.8 kB / 0.9931 GB, free: 9.34 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/1.732, allocations: 180.2 kB / 0.9933 GB, free: 9.164 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006864/1.733, allocations: 261 kB / 0.9935 GB, free: 8.879 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007074/1.734, allocations: 233.8 kB / 0.9938 GB, free: 8.645 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/1.734, allocations: 0 / 0.9938 GB, free: 8.645 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001858/1.736, allocations: 0.5632 MB / 0.9943 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008166/1.736, allocations: 0.8931 MB / 0.9952 GB, free: 7.102 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/1.736, allocations: 7.953 kB / 0.9952 GB, free: 7.094 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004252/1.737, allocations: 44.81 kB / 0.9952 GB, free: 7.047 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/1.738, allocations: 91.86 kB / 0.9953 GB, free: 6.957 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002865/1.74, allocations: 1.513 MB / 0.9968 GB, free: 5.305 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005958/1.741, allocations: 55.75 kB / 0.9969 GB, free: 5.25 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/1.741, allocations: 12 kB / 0.9969 GB, free: 5.238 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/1.741, allocations: 4 kB / 0.9969 GB, free: 5.234 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001795/1.743, allocations: 0.4995 MB / 0.9974 GB, free: 4.727 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/1.743, allocations: 3.984 kB / 0.9974 GB, free: 4.723 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002222/1.743, allocations: 36.83 kB / 0.9974 GB, free: 4.684 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/1.744, allocations: 92.03 kB / 0.9975 GB, free: 4.594 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/1.746, allocations: 1.508 MB / 0.999 GB, free: 2.949 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/1.747, allocations: 47.84 kB / 0.999 GB, free: 2.902 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/1.747, allocations: 15.98 kB / 0.999 GB, free: 2.887 MB / 0.7481 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.0004882/1.747, allocations: 236 kB / 0.9992 GB, free: 2.648 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-05/1.747, allocations: 23.72 kB / 0.9993 GB, free: 2.625 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/1.749, allocations: 0.4887 MB / 0.9997 GB, free: 2.125 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/1.749, allocations: 4 kB / 0.9998 GB, free: 2.121 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/1.749, allocations: 0 / 0.9998 GB, free: 2.121 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/1.749, allocations: 7.984 kB / 0.9998 GB, free: 2.113 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/1.75, allocations: 0.5623 MB / 1 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/1.75, allocations: 0 / 1 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005799/1.751, allocations: 87.8 kB / 1 GB, free: 1.402 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002719/1.751, allocations: 41.19 kB / 1 GB, free: 1.359 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/1.751, allocations: 11.98 kB / 1 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/1.753, allocations: 1.42 MB / 1.002 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.753, allocations: 8.094 kB / 1.002 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/1.755, allocations: 0.5945 MB / 1.002 GB, free: 15.14 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/1.756, allocations: 132.7 kB / 1.003 GB, free: 14.99 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.49e-05/1.756, allocations: 8 kB / 1.003 GB, free: 14.98 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004924/1.756, allocations: 43.95 kB / 1.003 GB, free: 14.94 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/1.756, allocations: 39.88 kB / 1.003 GB, free: 14.9 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/1.756, allocations: 8 kB / 1.003 GB, free: 14.89 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.00029/1.757, allocations: 172.5 kB / 1.003 GB, free: 14.72 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.8e-07/1.757, allocations: 0 / 1.003 GB, free: 14.72 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001114/1.758, allocations: 124 kB / 1.003 GB, free: 14.6 MB / 0.7637 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.002309/1.76, allocations: 1.364 MB / 1.004 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002958/1.763, allocations: 1.008 MB / 1.005 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.763, allocations: 0 / 1.005 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008509/1.764, allocations: 342.9 kB / 1.006 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005367/1.765, allocations: 41.28 kB / 1.006 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006574/1.771, allocations: 3.328 MB / 1.009 GB, free: 8.324 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/1.772, allocations: 0.7956 MB / 1.01 GB, free: 7.504 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005235/1.772, allocations: 98.47 kB / 1.01 GB, free: 7.406 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/1.773, allocations: 80.67 kB / 1.01 GB, free: 7.328 MB / 0.7637 GB Notification: Performance of SimCode: time 1.243e-06/1.773, allocations: 7.938 kB / 1.01 GB, free: 7.32 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06178/1.834, allocations: 6.569 MB / 1.016 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004717/1.835, allocations: 244.2 kB / 1.016 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.655/5.49, allocations: 0 / 1.016 GB, free: 0.7656 MB / 0.7637 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) Environment - environmentSimulation: 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