Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_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/Buildings 10.0.0-master/package.mo): time 2.39/2.39, allocations: 393.5 MB / 408.4 MB, free: 10.86 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.001076/0.001076, allocations: 188.9 kB / 0.4901 GB, free: 2.102 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.678/1.678, allocations: 223.1 MB / 0.7992 GB, free: 14.8 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.0008811/0.0008811, allocations: 98.7 kB / 0.9396 GB, free: 1.98 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003415/0.0003415, allocations: 7.562 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2848, allocations: 143 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2158/0.5006, allocations: 172.4 MB / 1.398 GB, free: 13.3 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.501, allocations: 91.94 kB / 1.398 GB, free: 13.21 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.05013/0.5512, allocations: 18.7 MB / 1.416 GB, free: 10.32 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.155e-06/0.5512, allocations: 0 / 1.416 GB, free: 10.32 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.987e-05/0.5513, allocations: 4 kB / 1.416 GB, free: 10.31 MB / 0.9167 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.001462/0.5527, allocations: 0.645 MB / 1.417 GB, free: 9.613 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.5528, allocations: 8.031 kB / 1.417 GB, free: 9.605 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.5529, allocations: 62.52 kB / 1.417 GB, free: 9.535 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008585/0.5538, allocations: 107.5 kB / 1.417 GB, free: 9.43 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.5543, allocations: 274.6 kB / 1.417 GB, free: 9.121 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.5543, allocations: 16.44 kB / 1.417 GB, free: 9.105 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.386e-05/0.5544, allocations: 23.98 kB / 1.417 GB, free: 9.082 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008312/0.5553, allocations: 430.5 kB / 1.417 GB, free: 8.625 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.5553, allocations: 3.906 kB / 1.417 GB, free: 8.621 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.5553, allocations: 7.938 kB / 1.417 GB, free: 8.613 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.761e-05/0.5554, allocations: 24.36 kB / 1.417 GB, free: 8.586 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009505/0.5563, allocations: 421.5 kB / 1.418 GB, free: 8.176 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.5586, allocations: 1.646 MB / 1.42 GB, free: 6.402 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.5598, allocations: 487.2 kB / 1.42 GB, free: 5.906 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001739/0.5599, allocations: 93.09 kB / 1.42 GB, free: 5.797 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000589/0.5605, allocations: 270.9 kB / 1.42 GB, free: 5.516 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=27): time 2.785e-06/0.5606, allocations: 0 / 1.42 GB, free: 5.516 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28): time 0.001975/0.5625, allocations: 0.7759 MB / 1.421 GB, free: 4.711 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.5626, allocations: 85.05 kB / 1.421 GB, free: 4.609 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.5628, allocations: 196.2 kB / 1.421 GB, free: 4.41 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.5629, allocations: 33.7 kB / 1.421 GB, free: 4.371 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.563, allocations: 176.2 kB / 1.422 GB, free: 4.195 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.898e-05/0.5631, allocations: 90.66 kB / 1.422 GB, free: 4.105 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.268e-05/0.5631, allocations: 8 kB / 1.422 GB, free: 4.098 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5633, allocations: 342.8 kB / 1.422 GB, free: 3.754 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004187/0.5637, allocations: 184.1 kB / 1.422 GB, free: 3.574 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.5642, allocations: 252.8 kB / 1.422 GB, free: 3.297 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004741/0.5647, allocations: 239.3 kB / 1.423 GB, free: 3.059 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.5647, allocations: 0 / 1.423 GB, free: 3.059 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001187/0.5659, allocations: 0.5625 MB / 1.423 GB, free: 2.484 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004127/0.5663, allocations: 0.8982 MB / 1.424 GB, free: 1.512 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.5663, allocations: 3.984 kB / 1.424 GB, free: 1.508 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002506/0.5666, allocations: 44.77 kB / 1.424 GB, free: 1.461 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004188/0.567, allocations: 91.86 kB / 1.424 GB, free: 1.371 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6682/1.235, allocations: 1.506 MB / 1.426 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/1.236, allocations: 52.83 kB / 1.426 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/1.236, allocations: 16.83 kB / 1.426 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/1.236, allocations: 3.406 kB / 1.426 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00126/1.237, allocations: 0.5024 MB / 1.426 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/1.237, allocations: 2.094 kB / 1.426 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/1.237, allocations: 47.78 kB / 1.426 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/1.238, allocations: 83.45 kB / 1.426 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/1.239, allocations: 1.492 MB / 1.428 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/1.239, allocations: 55.17 kB / 1.428 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/1.239, allocations: 12.88 kB / 1.428 GB, free: 181.5 MB / 0.9167 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.0002899/1.24, allocations: 247.4 kB / 1.428 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.329e-05/1.24, allocations: 21.33 kB / 1.428 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/1.241, allocations: 499 kB / 1.429 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/1.241, allocations: 7 kB / 1.429 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/1.241, allocations: 0 / 1.429 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/1.241, allocations: 8.781 kB / 1.429 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006204/1.241, allocations: 0.5618 MB / 1.429 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/1.241, allocations: 3.953 kB / 1.429 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/1.242, allocations: 82.66 kB / 1.429 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/1.242, allocations: 38.59 kB / 1.429 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/1.242, allocations: 5.688 kB / 1.429 GB, free: 181 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009219/1.243, allocations: 1.422 MB / 1.431 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/1.243, allocations: 8.156 kB / 1.431 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009654/1.244, allocations: 0.5899 MB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/1.244, allocations: 140.1 kB / 1.431 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.8e-05/1.244, allocations: 12.83 kB / 1.431 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/1.244, allocations: 41.02 kB / 1.431 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/1.245, allocations: 32.09 kB / 1.431 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/1.245, allocations: 11.69 kB / 1.431 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001702/1.245, allocations: 172.9 kB / 1.432 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.5e-07/1.245, allocations: 0.9375 kB / 1.432 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000638/1.245, allocations: 144.9 kB / 1.432 GB, free: 179.3 MB / 0.9167 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.001436/1.247, allocations: 1.365 MB / 1.433 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.002109/1.249, allocations: 1.011 MB / 1.434 GB, free: 178 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/1.249, allocations: 2.469 kB / 1.434 GB, free: 178 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006328/1.25, allocations: 338.5 kB / 1.434 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003541/1.25, allocations: 45.7 kB / 1.434 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004143/1.254, allocations: 3.347 MB / 1.438 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/1.255, allocations: 0.7937 MB / 1.439 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003752/1.255, allocations: 92.75 kB / 1.439 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/1.255, allocations: 84.83 kB / 1.439 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of SimCode: time 8.41e-07/1.255, allocations: 3.312 kB / 1.439 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/1.279, allocations: 6.559 MB / 1.445 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/1.28, allocations: 225.6 kB / 1.445 GB, free: 174.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.278/3.557, allocations: 4.312 kB / 1.445 GB, free: 174.6 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat