Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.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.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss",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.0009852/0.0009856, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001019/0.001019, allocations: 177.3 kB / 15.94 MB, free: 228 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.429/1.429, allocations: 223.2 MB / 239.9 MB, free: 5.34 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.595/2.595, allocations: 390.3 MB / 0.6653 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003854, allocations: 15.98 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7924/0.7928, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss): time 0.002013/0.7948, allocations: 1.536 MB / 0.9551 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003701/0.7986, allocations: 3.031 MB / 0.9581 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.7987, allocations: 5.438 kB / 0.9581 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.799, allocations: 40.17 kB / 0.9581 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004852/0.7995, allocations: 122.2 kB / 0.9582 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 7.596e-05/0.7996, allocations: 22.94 kB / 0.9582 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.7998, allocations: 115.9 kB / 0.9583 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.7999, allocations: 25.25 kB / 0.9584 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.8002, allocations: 65.72 kB / 0.9584 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.8003, allocations: 68 kB / 0.9585 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.8004, allocations: 4.5 kB / 0.9585 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.485e-05/0.8005, allocations: 23.11 kB / 0.9585 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.459e-05/0.8005, allocations: 33.86 kB / 0.9586 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.808e-05/0.8006, allocations: 49.48 kB / 0.9586 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.8007, allocations: 110.6 kB / 0.9587 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.8007, allocations: 0 / 0.9587 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8007, allocations: 0 / 0.9587 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.8008, allocations: 1.438 kB / 0.9587 GB, free: 3.973 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008043/0.8016, allocations: 491.1 kB / 0.9592 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.8016, allocations: 10.06 kB / 0.9592 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.421e-05/0.8017, allocations: 48.98 kB / 0.9592 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.852e-05/0.8017, allocations: 16.53 kB / 0.9592 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.8021, allocations: 238.4 kB / 0.9595 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-06/0.8021, allocations: 10.73 kB / 0.9595 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.8021, allocations: 2.75 kB / 0.9595 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.8025, allocations: 141.6 kB / 0.9596 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.8025, allocations: 4 kB / 0.9596 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.8025, allocations: 5.297 kB / 0.9596 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-05/0.8026, allocations: 14.58 kB / 0.9596 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004354/0.803, allocations: 156.2 kB / 0.9598 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006596/0.8037, allocations: 442.8 kB / 0.9602 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.8041, allocations: 174.9 kB / 0.9604 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.8041, allocations: 5.438 kB / 0.9604 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.8041, allocations: 32.16 kB / 0.9604 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.232e-06/0.8041, allocations: 0 / 0.9604 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0008409/0.805, allocations: 304 kB / 0.9607 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.805, allocations: 56.78 kB / 0.9608 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.8052, allocations: 204.2 kB / 0.961 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.8052, allocations: 29.7 kB / 0.961 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.752e-05/0.8053, allocations: 124.3 kB / 0.9611 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.8053, allocations: 40.89 kB / 0.9611 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.999e-06/0.8053, allocations: 4 kB / 0.9611 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.765e-05/0.8054, allocations: 328.3 kB / 0.9615 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.8056, allocations: 85.25 kB / 0.9615 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.8058, allocations: 72.78 kB / 0.9616 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.8061, allocations: 90.72 kB / 0.9617 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8061, allocations: 0 / 0.9617 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004991/0.8066, allocations: 233.3 kB / 0.9619 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.8066, allocations: 13.22 kB / 0.9619 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.8066, allocations: 0 / 0.9619 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.8066, allocations: 1 kB / 0.9619 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.8069, allocations: 43.06 kB / 0.962 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.8069, allocations: 1 kB / 0.962 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.8071, allocations: 20.16 kB / 0.962 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.8071, allocations: 3.062 kB / 0.962 GB, free: 1.359 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.313e-05/0.8072, allocations: 130.1 kB / 0.9621 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.144e-05/0.8072, allocations: 28.67 kB / 0.9621 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.616e-05/0.8073, allocations: 26.59 kB / 0.9622 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.8073, allocations: 1.406 kB / 0.9622 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.8073, allocations: 1.312 kB / 0.9622 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.8073, allocations: 3.984 kB / 0.9622 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.8075, allocations: 254.7 kB / 0.9624 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.8076, allocations: 0.9688 kB / 0.9624 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.8078, allocations: 43.39 kB / 0.9625 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.8078, allocations: 5 kB / 0.9625 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.8078, allocations: 5.172 kB / 0.9625 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.8078, allocations: 1.125 kB / 0.9625 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.8078, allocations: 0 / 0.9625 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005291/0.8083, allocations: 325.1 kB / 0.9628 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.049e-05/0.8084, allocations: 107.1 kB / 0.9629 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.8085, allocations: 5.094 kB / 0.9629 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/0.8087, allocations: 23.16 kB / 0.9629 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.8087, allocations: 12.73 kB / 0.9629 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.8088, allocations: 6.703 kB / 0.9629 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001194/0.8089, allocations: 150.4 kB / 0.9631 GB, free: 444 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8089, allocations: 0 / 0.9631 GB, free: 444 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003052/0.8092, allocations: 34.69 kB / 0.9631 GB, free: 440 kB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008447/0.8101, allocations: 0.8692 MB / 0.964 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005192/0.8106, allocations: 181.3 kB / 0.9641 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.8106, allocations: 0 / 0.9641 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002495/0.8108, allocations: 101.4 kB / 0.9642 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.8112, allocations: 30.33 kB / 0.9643 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.8134, allocations: 1.257 MB / 0.9655 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.8137, allocations: 0.7441 MB / 0.9662 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001862/0.8139, allocations: 46.22 kB / 0.9663 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.485e-05/0.814, allocations: 49.91 kB / 0.9663 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of SimCode: time 8.31e-07/0.814, allocations: 1.219 kB / 0.9663 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01675/0.8308, allocations: 3.355 MB / 0.9696 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.831, allocations: 204.9 kB / 0.9698 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.47, allocations: 0 / 0.9698 GB, free: 12.13 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss_res.mat does not exist to compare? outputFormat=mat