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.491/2.491, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001287/0.001287, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 221.3 MB / 0.7915 GB, free: 5.457 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.0008965/0.0008966, allocations: 91.89 kB / 0.9317 GB, free: 5.781 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.82e-05/4.836e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3334, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.081/1.415, allocations: 172.3 MB / 1.387 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/1.415, allocations: 97.61 kB / 1.387 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.04617/1.461, allocations: 18.61 MB / 1.405 GB, free: 15.46 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.964e-06/1.461, allocations: 0 / 1.405 GB, free: 15.46 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.854e-05/1.461, allocations: 8 kB / 1.405 GB, free: 15.46 MB / 0.8698 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.00131/1.462, allocations: 0.6158 MB / 1.406 GB, free: 14.81 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/1.463, allocations: 8.031 kB / 1.406 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/1.463, allocations: 58.66 kB / 1.406 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008602/1.464, allocations: 107.5 kB / 1.406 GB, free: 14.64 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004589/1.464, allocations: 273.5 kB / 1.406 GB, free: 14.36 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/1.464, allocations: 14.38 kB / 1.406 GB, free: 14.35 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.304e-05/1.464, allocations: 26.2 kB / 1.406 GB, free: 14.33 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/1.465, allocations: 366.5 kB / 1.407 GB, free: 14.04 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/1.465, allocations: 4 kB / 1.407 GB, free: 14.03 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/1.465, allocations: 15.23 kB / 1.407 GB, free: 14.02 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.312e-05/1.465, allocations: 20.36 kB / 1.407 GB, free: 14 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000495/1.465, allocations: 315.1 kB / 1.407 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/1.467, allocations: 1.657 MB / 1.409 GB, free: 12.21 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000763/1.468, allocations: 391.8 kB / 1.409 GB, free: 11.92 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/1.468, allocations: 156.5 kB / 1.409 GB, free: 11.81 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/1.469, allocations: 89.09 kB / 1.409 GB, free: 11.7 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003458/1.469, allocations: 233.2 kB / 1.41 GB, free: 11.51 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/1.469, allocations: 0 / 1.41 GB, free: 11.51 MB / 0.8698 GB Notification: Performance of matching and sorting (n=28): time 0.0009075/1.47, allocations: 439.2 kB / 1.41 GB, free: 11.16 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/1.47, allocations: 81.11 kB / 1.41 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/1.47, allocations: 203.2 kB / 1.41 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/1.47, allocations: 33.02 kB / 1.41 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/1.47, allocations: 170.2 kB / 1.41 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.958e-05/1.47, allocations: 92.78 kB / 1.411 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.828e-05/1.47, allocations: 3.938 kB / 1.411 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000134/1.471, allocations: 339.9 kB / 1.411 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/1.471, allocations: 131.6 kB / 1.411 GB, free: 10.21 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/1.471, allocations: 219.1 kB / 1.411 GB, free: 10.02 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/1.471, allocations: 185.7 kB / 1.411 GB, free: 9.879 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.471, allocations: 4 kB / 1.411 GB, free: 9.875 MB / 0.8698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007818/1.472, allocations: 469.9 kB / 1.412 GB, free: 9.512 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004199/1.473, allocations: 0.9055 MB / 1.413 GB, free: 8.551 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/1.473, allocations: 4 kB / 1.413 GB, free: 8.547 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/1.473, allocations: 40.7 kB / 1.413 GB, free: 8.508 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004/1.473, allocations: 91.67 kB / 1.413 GB, free: 8.422 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/1.475, allocations: 1.493 MB / 1.414 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/1.475, allocations: 54.42 kB / 1.414 GB, free: 6.832 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/1.475, allocations: 19.42 kB / 1.414 GB, free: 6.816 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/1.475, allocations: 7.953 kB / 1.414 GB, free: 6.809 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006798/1.476, allocations: 409.5 kB / 1.415 GB, free: 6.504 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/1.476, allocations: 0 / 1.415 GB, free: 6.504 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001269/1.476, allocations: 43.92 kB / 1.415 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/1.476, allocations: 87.86 kB / 1.415 GB, free: 6.379 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/1.477, allocations: 1.489 MB / 1.416 GB, free: 4.852 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/1.478, allocations: 46.42 kB / 1.416 GB, free: 4.812 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/1.478, allocations: 12 kB / 1.416 GB, free: 4.801 MB / 0.8698 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.0001313/1.478, allocations: 131.6 kB / 1.417 GB, free: 4.676 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.423e-05/1.478, allocations: 23.72 kB / 1.417 GB, free: 4.652 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00069/1.479, allocations: 399.3 kB / 1.417 GB, free: 4.363 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/1.479, allocations: 7.938 kB / 1.417 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/1.479, allocations: 7.938 kB / 1.417 GB, free: 4.348 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/1.479, allocations: 4 kB / 1.417 GB, free: 4.344 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006593/1.479, allocations: 0.5684 MB / 1.418 GB, free: 3.805 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/1.479, allocations: 0 / 1.418 GB, free: 3.805 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/1.48, allocations: 79.95 kB / 1.418 GB, free: 3.727 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001231/1.48, allocations: 40.58 kB / 1.418 GB, free: 3.688 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/1.48, allocations: 6.188 kB / 1.418 GB, free: 3.688 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/1.481, allocations: 1.417 MB / 1.419 GB, free: 2.219 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.481, allocations: 0 / 1.419 GB, free: 2.219 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/1.482, allocations: 0.5012 MB / 1.42 GB, free: 1.762 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/1.482, allocations: 137.7 kB / 1.42 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/1.482, allocations: 10.81 kB / 1.42 GB, free: 1.613 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/1.482, allocations: 39.39 kB / 1.42 GB, free: 1.578 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/1.483, allocations: 39.08 kB / 1.42 GB, free: 1.543 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/1.483, allocations: 15.8 kB / 1.42 GB, free: 1.531 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001539/1.483, allocations: 168.5 kB / 1.42 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/1.483, allocations: 0 / 1.42 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0005828/1.483, allocations: 137.3 kB / 1.42 GB, free: 1.277 MB / 0.8698 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.001134/1.484, allocations: 1.268 MB / 1.421 GB, free: 60 kB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001275/1.486, allocations: 0.8705 MB / 1.422 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.486, allocations: 0 / 1.422 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004379/1.486, allocations: 299.3 kB / 1.422 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/1.487, allocations: 40.23 kB / 1.422 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/1.488, allocations: 0.5473 MB / 1.423 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/1.488, allocations: 0.7906 MB / 1.424 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0003534/1.489, allocations: 106 kB / 1.424 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/1.489, allocations: 87.34 kB / 1.424 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of SimCode: time 4.7e-07/1.489, allocations: 0 / 1.424 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/1.511, allocations: 6.852 MB / 1.431 GB, free: 6.926 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/1.512, allocations: 204.5 kB / 1.431 GB, free: 6.695 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/3.679, allocations: 0 / 1.431 GB, free: 6.695 MB / 0.8855 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