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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.306/2.306, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001576/0.001576, allocations: 190 kB / 498.1 MB, free: 5.691 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.529/1.529, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009165/0.0009166, allocations: 95.58 kB / 0.9346 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003502, allocations: 7.688 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2979, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2467/0.5446, allocations: 171.5 MB / 1.39 GB, free: 6.434 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.545, allocations: 99.94 kB / 1.391 GB, free: 6.336 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.04732/0.5923, allocations: 18.7 MB / 1.409 GB, free: 3.441 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5923, allocations: 0 / 1.409 GB, free: 3.441 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.931e-05/0.5924, allocations: 12 kB / 1.409 GB, free: 3.43 MB / 0.9011 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.001426/0.5938, allocations: 0.6449 MB / 1.409 GB, free: 2.73 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.5939, allocations: 12.03 kB / 1.409 GB, free: 2.719 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.594, allocations: 58.53 kB / 1.41 GB, free: 2.652 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008586/0.5949, allocations: 99.48 kB / 1.41 GB, free: 2.555 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.5954, allocations: 278.5 kB / 1.41 GB, free: 2.242 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.5954, allocations: 16.44 kB / 1.41 GB, free: 2.227 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/0.5955, allocations: 27.98 kB / 1.41 GB, free: 2.199 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008432/0.5963, allocations: 418.5 kB / 1.41 GB, free: 1.766 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.5964, allocations: 0 / 1.41 GB, free: 1.766 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.5964, allocations: 12 kB / 1.41 GB, free: 1.754 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-05/0.5965, allocations: 20.36 kB / 1.41 GB, free: 1.73 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009204/0.5974, allocations: 420.7 kB / 1.411 GB, free: 1.32 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.5996, allocations: 1.646 MB / 1.412 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.6008, allocations: 494.7 kB / 1.413 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001593/0.6009, allocations: 89.08 kB / 1.413 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005446/0.6015, allocations: 281.3 kB / 1.413 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=27): time 2.916e-06/0.6015, allocations: 0 / 1.413 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28): time 0.001906/0.6034, allocations: 0.7718 MB / 1.414 GB, free: 13.85 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.6035, allocations: 89.09 kB / 1.414 GB, free: 13.74 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.6037, allocations: 204.4 kB / 1.414 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.6038, allocations: 29.7 kB / 1.414 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.6039, allocations: 164.4 kB / 1.414 GB, free: 13.34 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.604, allocations: 94.64 kB / 1.415 GB, free: 13.24 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-05/0.604, allocations: 11.94 kB / 1.415 GB, free: 13.23 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6041, allocations: 338.8 kB / 1.415 GB, free: 12.89 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004181/0.6045, allocations: 180.2 kB / 1.415 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004426/0.605, allocations: 261.9 kB / 1.415 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004669/0.6055, allocations: 230.8 kB / 1.415 GB, free: 12.2 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.6055, allocations: 4 kB / 1.415 GB, free: 12.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001153/0.6067, allocations: 0.5559 MB / 1.416 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003811/0.6071, allocations: 0.9029 MB / 1.417 GB, free: 10.65 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.6071, allocations: 4 kB / 1.417 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/0.6073, allocations: 40.83 kB / 1.417 GB, free: 10.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000423/0.6078, allocations: 95.8 kB / 1.417 GB, free: 10.51 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.6092, allocations: 1.505 MB / 1.419 GB, free: 8.863 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003905/0.6096, allocations: 43.92 kB / 1.419 GB, free: 8.82 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/0.6096, allocations: 23.98 kB / 1.419 GB, free: 8.797 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.6097, allocations: 4 kB / 1.419 GB, free: 8.793 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00108/0.6107, allocations: 0.4983 MB / 1.419 GB, free: 8.285 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6108, allocations: 8.219 kB / 1.419 GB, free: 8.277 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.6109, allocations: 44.81 kB / 1.419 GB, free: 8.23 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.6113, allocations: 83.86 kB / 1.419 GB, free: 8.148 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.6126, allocations: 1.5 MB / 1.421 GB, free: 6.508 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003372/0.6129, allocations: 55.83 kB / 1.421 GB, free: 6.453 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.613, allocations: 12.06 kB / 1.421 GB, free: 6.441 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.000264/0.6132, allocations: 241 kB / 1.421 GB, free: 6.195 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.769e-05/0.6133, allocations: 27.7 kB / 1.421 GB, free: 6.168 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.6144, allocations: 492.2 kB / 1.421 GB, free: 5.676 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.6145, allocations: 4 kB / 1.421 GB, free: 5.672 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.6145, allocations: 0 / 1.421 GB, free: 5.672 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.6145, allocations: 0 / 1.421 GB, free: 5.672 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007533/0.6152, allocations: 0.57 MB / 1.422 GB, free: 5.039 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.6153, allocations: 8.156 kB / 1.422 GB, free: 5.031 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.6157, allocations: 83.84 kB / 1.422 GB, free: 4.949 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001279/0.6158, allocations: 36.83 kB / 1.422 GB, free: 4.91 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.6158, allocations: 8 kB / 1.422 GB, free: 4.902 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.617, allocations: 1.421 MB / 1.424 GB, free: 3.348 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6171, allocations: 4.031 kB / 1.424 GB, free: 3.344 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.6181, allocations: 0.6017 MB / 1.424 GB, free: 2.695 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.6183, allocations: 132.7 kB / 1.424 GB, free: 2.547 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.6184, allocations: 15.92 kB / 1.424 GB, free: 2.531 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003201/0.6187, allocations: 39.95 kB / 1.424 GB, free: 2.492 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.6188, allocations: 31.91 kB / 1.424 GB, free: 2.461 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.6189, allocations: 15.94 kB / 1.424 GB, free: 2.445 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001686/0.619, allocations: 172.5 kB / 1.425 GB, free: 2.277 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.4e-07/0.619, allocations: 0 / 1.425 GB, free: 2.277 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006429/0.6197, allocations: 147.9 kB / 1.425 GB, free: 2.133 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.001547/0.6212, allocations: 1.375 MB / 1.426 GB, free: 0.707 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.5666/1.188, allocations: 1.007 MB / 1.427 GB, free: 190.3 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/1.188, allocations: 0 / 1.427 GB, free: 190.3 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006945/1.189, allocations: 338 kB / 1.427 GB, free: 190.2 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004489/1.189, allocations: 43.14 kB / 1.427 GB, free: 190.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004233/1.193, allocations: 3.343 MB / 1.431 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/1.194, allocations: 0.7918 MB / 1.431 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003749/1.194, allocations: 94.77 kB / 1.431 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/1.194, allocations: 87.52 kB / 1.432 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of SimCode: time 2.174e-06/1.194, allocations: 3.844 kB / 1.432 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/1.218, allocations: 6.546 MB / 1.438 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/1.219, allocations: 216.3 kB / 1.438 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/3.381, allocations: 1.094 kB / 1.438 GB, free: 187.1 MB / 0.9167 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