Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",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.001011/0.001012, allocations: 92.16 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.001265/0.001265, 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.487/1.487, allocations: 223.2 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.621/2.621, allocations: 409.4 MB / 0.684 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000404/0.0004043, allocations: 8 kB / 0.8378 GB, free: 6.469 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7715/0.7719, allocations: 146.8 MB / 0.9811 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002731/0.7747, allocations: 2.091 MB / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002328/0.777, allocations: 1.456 MB / 0.9846 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.7772, allocations: 4 kB / 0.9846 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008665/0.7781, allocations: 291 kB / 0.9849 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003699/0.7785, allocations: 187.3 kB / 0.9851 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006216/0.7791, allocations: 217.4 kB / 0.9853 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003687/0.7795, allocations: 342.8 kB / 0.9856 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.7796, allocations: 64.86 kB / 0.9857 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.7798, allocations: 139.3 kB / 0.9858 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.78, allocations: 151.3 kB / 0.9859 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.7801, allocations: 7.938 kB / 0.9859 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.7802, allocations: 59.91 kB / 0.986 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.7804, allocations: 111.6 kB / 0.9861 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.708e-05/0.7805, allocations: 97.39 kB / 0.9862 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000357/0.7808, allocations: 369.4 kB / 0.9866 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.7808, allocations: 0 / 0.9866 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.164e-06/0.7808, allocations: 4 kB / 0.9866 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.144e-06/0.7809, allocations: 0 / 0.9866 GB, free: 0.6641 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001037/0.7819, allocations: 0.7638 MB / 0.9873 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.7819, allocations: 8.031 kB / 0.9873 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.08e-05/0.782, allocations: 42.55 kB / 0.9874 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.023e-05/0.7821, allocations: 63.25 kB / 0.9874 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.7826, allocations: 404 kB / 0.9878 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.7826, allocations: 12.19 kB / 0.9878 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.7826, allocations: 8 kB / 0.9878 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.7829, allocations: 141 kB / 0.9879 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.7829, allocations: 3.938 kB / 0.988 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.783, allocations: 4 kB / 0.988 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.783, allocations: 4 kB / 0.988 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.7831, allocations: 73.02 kB / 0.988 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008491/0.784, allocations: 0.5899 MB / 0.9886 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.7843, allocations: 122.8 kB / 0.9887 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.7844, allocations: 48.77 kB / 0.9888 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.165e-05/0.7845, allocations: 4 kB / 0.9888 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.7848, allocations: 111.3 kB / 0.9889 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=13): time 1.803e-06/0.7848, allocations: 0 / 0.9889 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of matching and sorting (n=13): time 0.0005835/0.7854, allocations: 232.9 kB / 0.9891 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/0.7855, allocations: 81.05 kB / 0.9892 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008231/0.7863, allocations: 0.6798 MB / 0.9898 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.7863, allocations: 33.7 kB / 0.9899 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.7866, allocations: 264.3 kB / 0.9901 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.7866, allocations: 35.55 kB / 0.9902 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.67e-05/0.7866, allocations: 15.98 kB / 0.9902 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001847/0.7868, allocations: 366.8 kB / 0.9905 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.787, allocations: 67.97 kB / 0.9906 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.7872, allocations: 122.6 kB / 0.9907 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.7873, allocations: 75.36 kB / 0.9908 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.7874, allocations: 4 kB / 0.9908 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004433/0.7878, allocations: 264.9 kB / 0.991 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.7878, allocations: 5.406 kB / 0.991 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.7879, allocations: 3.984 kB / 0.991 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.7879, allocations: 4 kB / 0.991 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.7881, allocations: 39.92 kB / 0.9911 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.7881, allocations: 0 / 0.9911 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.7883, allocations: 31.94 kB / 0.9911 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.7883, allocations: 8 kB / 0.9911 GB, free: 11.72 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 0.0002533/0.7886, allocations: 211.5 kB / 0.9913 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.804e-05/0.7886, allocations: 59.23 kB / 0.9914 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.7887, allocations: 60.98 kB / 0.9914 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.7888, allocations: 7.984 kB / 0.9914 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.7888, allocations: 4 kB / 0.9915 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.7888, allocations: 0 / 0.9915 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.7892, allocations: 365.4 kB / 0.9918 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.7892, allocations: 0 / 0.9918 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.518e-05/0.7892, allocations: 8 kB / 0.9918 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.7892, allocations: 4 kB / 0.9918 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.7893, allocations: 11.98 kB / 0.9918 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.7893, allocations: 0 / 0.9918 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.7893, allocations: 7.875 kB / 0.9918 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003516/0.7896, allocations: 222.9 kB / 0.992 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.7898, allocations: 128.4 kB / 0.9922 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.61e-05/0.7898, allocations: 11.98 kB / 0.9922 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.79, allocations: 11.98 kB / 0.9922 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.507e-05/0.79, allocations: 15.98 kB / 0.9922 GB, free: 10.51 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.7901, allocations: 7.984 kB / 0.9922 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0005047/0.7906, allocations: 467 kB / 0.9927 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7906, allocations: 4 kB / 0.9927 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000306/0.7909, allocations: 67.84 kB / 0.9927 GB, free: 9.98 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001489/0.7924, allocations: 1.083 MB / 0.9938 GB, free: 9.031 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003379/0.7927, allocations: 155.9 kB / 0.9939 GB, free: 8.879 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7928, allocations: 0 / 0.9939 GB, free: 8.879 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.7929, allocations: 63.91 kB / 0.994 GB, free: 8.816 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.7933, allocations: 80.91 kB / 0.9941 GB, free: 8.742 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.7971, allocations: 2.899 MB / 0.9969 GB, free: 5.777 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.7976, allocations: 0.8691 MB / 0.9978 GB, free: 4.883 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001588/0.7977, allocations: 46.94 kB / 0.9978 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.7979, allocations: 163.4 kB / 0.998 GB, free: 4.68 MB / 0.7481 GB Notification: Performance of SimCode: time 7.51e-07/0.7979, allocations: 0 / 0.998 GB, free: 4.68 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.8188, allocations: 9.377 MB / 1.007 GB, free: 11.53 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002799/0.8192, allocations: 242.2 kB / 1.007 GB, free: 11.29 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.864, allocations: 7.875 kB / 1.007 GB, free: 11.28 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat does not exist to compare? outputFormat=mat