Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_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.00104/0.00104, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001321/0.001321, allocations: 172.7 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 1.581/1.581, allocations: 223.3 MB / 240 MB, free: 5.43 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.596/2.596, allocations: 390.4 MB / 0.6655 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003525, allocations: 15.97 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8244/0.8248, allocations: 142.3 MB / 0.9539 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003518/0.8283, allocations: 2.616 MB / 0.9564 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003006/0.8314, allocations: 1.618 MB / 0.958 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003301/0.8317, allocations: 7.594 kB / 0.958 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.832, allocations: 31.81 kB / 0.958 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000731/0.8327, allocations: 144.7 kB / 0.9582 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000751/0.8335, allocations: 182.3 kB / 0.9583 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007814/0.8343, allocations: 422.9 kB / 0.9587 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009247/0.8352, allocations: 392.3 kB / 0.9591 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003774/0.8356, allocations: 127 kB / 0.9592 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006328/0.8363, allocations: 169 kB / 0.9594 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.628e-05/0.8364, allocations: 12.38 kB / 0.9594 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005759/0.837, allocations: 147.4 kB / 0.9595 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.8372, allocations: 79.22 kB / 0.9596 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.8374, allocations: 71.58 kB / 0.9597 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008075/0.8382, allocations: 343.9 kB / 0.96 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.8382, allocations: 0.9688 kB / 0.96 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.154e-06/0.8382, allocations: 0 / 0.96 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.032e-05/0.8382, allocations: 0 / 0.96 GB, free: 3.461 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.001405/0.8396, allocations: 0.6093 MB / 0.9606 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.8397, allocations: 9.188 kB / 0.9606 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.8398, allocations: 59.22 kB / 0.9607 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008215/0.8407, allocations: 102 kB / 0.9608 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.8411, allocations: 268.9 kB / 0.961 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.8411, allocations: 17.38 kB / 0.9611 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.434e-05/0.8412, allocations: 17.88 kB / 0.9611 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009348/0.8421, allocations: 428.6 kB / 0.9615 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.8421, allocations: 0.9688 kB / 0.9615 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.679e-05/0.8422, allocations: 13.98 kB / 0.9615 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.644e-05/0.8423, allocations: 26.25 kB / 0.9615 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009995/0.8433, allocations: 419.4 kB / 0.9619 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.8452, allocations: 1.619 MB / 0.9635 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.8464, allocations: 488.7 kB / 0.964 GB, free: 296 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003717/0.8467, allocations: 206 kB / 0.9642 GB, free: 192 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.8469, allocations: 88.59 kB / 0.9642 GB, free: 92 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005959/0.8475, allocations: 290.5 kB / 0.9645 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=27): time 2.324e-06/0.8475, allocations: 0 / 0.9645 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28): time 0.001973/0.8495, allocations: 0.7735 MB / 0.9653 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.8496, allocations: 88.56 kB / 0.9654 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002334/0.8498, allocations: 230.1 kB / 0.9656 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.8498, allocations: 33.52 kB / 0.9656 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.85, allocations: 159.6 kB / 0.9658 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.8501, allocations: 95.11 kB / 0.9659 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.8501, allocations: 9.031 kB / 0.9659 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.8502, allocations: 332.8 kB / 0.9662 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/0.8507, allocations: 181.6 kB / 0.9664 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004676/0.8511, allocations: 258 kB / 0.9666 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000472/0.8516, allocations: 234.6 kB / 0.9668 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.8516, allocations: 1.125 kB / 0.9668 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001238/0.8529, allocations: 0.5529 MB / 0.9674 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000141/0.853, allocations: 197.1 kB / 0.9676 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.8531, allocations: 2.031 kB / 0.9676 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/0.8533, allocations: 37.77 kB / 0.9676 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004089/0.8537, allocations: 90.7 kB / 0.9677 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.8553, allocations: 1.49 MB / 0.9691 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/0.8556, allocations: 50.64 kB / 0.9692 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.775e-05/0.8557, allocations: 14.91 kB / 0.9692 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.8557, allocations: 5.094 kB / 0.9692 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001108/0.8568, allocations: 0.5089 MB / 0.9697 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.8568, allocations: 1.344 kB / 0.9697 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001412/0.857, allocations: 42.47 kB / 0.9697 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00036/0.8574, allocations: 84.47 kB / 0.9698 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.8587, allocations: 1.493 MB / 0.9713 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.8591, allocations: 53.05 kB / 0.9713 GB, free: 10.28 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.8591, allocations: 14.53 kB / 0.9713 GB, free: 10.28 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.0003033/0.8594, allocations: 234.8 kB / 0.9716 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.194e-05/0.8595, allocations: 28.14 kB / 0.9716 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.8606, allocations: 498.2 kB / 0.9721 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.8606, allocations: 3.344 kB / 0.9721 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.8606, allocations: 1.062 kB / 0.9721 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.8607, allocations: 1.25 kB / 0.9721 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007625/0.8614, allocations: 0.5633 MB / 0.9726 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.8614, allocations: 1.469 kB / 0.9726 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.8618, allocations: 86.69 kB / 0.9727 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001187/0.8619, allocations: 34.55 kB / 0.9727 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.862, allocations: 10.34 kB / 0.9728 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.8631, allocations: 1.41 MB / 0.9741 GB, free: 7.789 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.8631, allocations: 5.875 kB / 0.9741 GB, free: 7.785 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.8642, allocations: 0.5613 MB / 0.9747 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001626/0.8643, allocations: 146.5 kB / 0.9748 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.8644, allocations: 7.469 kB / 0.9748 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002897/0.8647, allocations: 43.22 kB / 0.9749 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.8648, allocations: 29.08 kB / 0.9749 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.8648, allocations: 6.906 kB / 0.9749 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000202/0.865, allocations: 187.6 kB / 0.9751 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.865, allocations: 5.031 kB / 0.9751 GB, free: 7.102 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006898/0.8657, allocations: 128 kB / 0.9752 GB, free: 7.086 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.001415/0.8672, allocations: 1.114 MB / 0.9763 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001953/0.8691, allocations: 1.019 MB / 0.9773 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.8691, allocations: 0 / 0.9773 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006409/0.8698, allocations: 342.2 kB / 0.9776 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004811/0.8703, allocations: 42.48 kB / 0.9777 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.8741, allocations: 1.969 MB / 0.9796 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.8745, allocations: 0.7838 MB / 0.9803 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003376/0.8748, allocations: 98.89 kB / 0.9804 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.875, allocations: 82.25 kB / 0.9805 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of SimCode: time 1.182e-06/0.875, allocations: 0 / 0.9805 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.8953, allocations: 6.576 MB / 0.9869 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002438/0.8956, allocations: 225.2 kB / 0.9872 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.782, allocations: 6.031 kB / 0.9872 GB, free: 12.96 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat