Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",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.004629/0.004629, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001067/0.001067, allocations: 188.6 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002353/0.002353, allocations: 290.4 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9308/0.9308, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 99.73 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1802, allocations: 86.97 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5593/0.7396, allocations: 195.1 MB / 0.9564 GB, free: 15.94 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01726/0.7569, allocations: 14.32 MB / 0.9704 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.7582, allocations: 35.81 kB / 0.9704 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001763/0.76, allocations: 0.5046 MB / 0.9709 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004829/0.7649, allocations: 1.886 MB / 0.9728 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002867/0.7678, allocations: 0.8705 MB / 0.9736 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003505/0.7713, allocations: 2.573 MB / 0.9761 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.7732, allocations: 1.121 MB / 0.9772 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00444/0.7777, allocations: 1.616 MB / 0.9788 GB, free: 8.961 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001776/0.7795, allocations: 0.9185 MB / 0.9797 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003488/0.7798, allocations: 104 kB / 0.9798 GB, free: 7.938 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002627/0.7825, allocations: 1.099 MB / 0.9809 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007134/0.7832, allocations: 0.5026 MB / 0.9814 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00143/0.7847, allocations: 0.6338 MB / 0.982 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003325/0.788, allocations: 1.909 MB / 0.9839 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.788, allocations: 0 / 0.9839 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.463e-06/0.788, allocations: 0 / 0.9839 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.382e-05/0.7881, allocations: 8 kB / 0.9839 GB, free: 3.773 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002968/0.7911, allocations: 1.449 MB / 0.9853 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.7911, allocations: 12.03 kB / 0.9853 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002576/0.7914, allocations: 139.6 kB / 0.9854 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001507/0.7929, allocations: 258.2 kB / 0.9857 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.7945, allocations: 0.7921 MB / 0.9864 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.041e-05/0.7945, allocations: 77.94 kB / 0.9865 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.7947, allocations: 96 kB / 0.9866 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.7965, allocations: 1.173 MB / 0.9878 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.7965, allocations: 0 / 0.9878 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.764e-05/0.7966, allocations: 43.94 kB / 0.9878 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-05/0.7967, allocations: 33.98 kB / 0.9878 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.7981, allocations: 0.9054 MB / 0.9887 GB, free: 14.63 MB / 0.7481 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005867/0.8039, allocations: 5.746 MB / 0.9943 GB, free: 8.43 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008387/0.8048, allocations: 0.5288 MB / 0.9948 GB, free: 7.898 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004185/0.8052, allocations: 326.5 kB / 0.9952 GB, free: 7.578 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006094/0.8058, allocations: 311.7 kB / 0.9955 GB, free: 7.219 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.8059, allocations: 42.94 kB / 0.9955 GB, free: 7.168 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.8059, allocations: 4 kB / 0.9955 GB, free: 7.164 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001481/0.8074, allocations: 0.7948 MB / 0.9963 GB, free: 6.359 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.8074, allocations: 55.84 kB / 0.9963 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009291/0.8084, allocations: 0.7548 MB / 0.9971 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.146e-05/0.8085, allocations: 37.7 kB / 0.9971 GB, free: 5.488 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.8088, allocations: 0.5066 MB / 0.9976 GB, free: 4.973 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.809, allocations: 181.4 kB / 0.9978 GB, free: 4.793 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/0.8092, allocations: 138.6 kB / 0.9979 GB, free: 4.648 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.8094, allocations: 337.9 kB / 0.9982 GB, free: 4.312 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.8097, allocations: 241.9 kB / 0.9985 GB, free: 4.078 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/0.8103, allocations: 0.5585 MB / 0.999 GB, free: 3.387 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009717/0.8113, allocations: 0.7996 MB / 0.9998 GB, free: 2.477 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.8113, allocations: 4 kB / 0.9998 GB, free: 2.473 MB / 0.7481 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00129/0.8126, allocations: 0.8427 MB / 1.001 GB, free: 1.625 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.8127, allocations: 12.22 kB / 1.001 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.8127, allocations: 8 kB / 1.001 GB, free: 1.605 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/0.8127, allocations: 12 kB / 1.001 GB, free: 1.594 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005354/0.8133, allocations: 155.8 kB / 1.001 GB, free: 1.441 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.558e-05/0.8133, allocations: 19.92 kB / 1.001 GB, free: 1.422 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007361/0.814, allocations: 87.11 kB / 1.001 GB, free: 1.336 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.8141, allocations: 35.94 kB / 1.001 GB, free: 1.301 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004597/0.8146, allocations: 333.5 kB / 1.001 GB, free: 0.9648 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.8148, allocations: 86.97 kB / 1.001 GB, free: 0.8789 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009573/0.8157, allocations: 0.6179 MB / 1.002 GB, free: 256 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.8157, allocations: 4 kB / 1.002 GB, free: 252 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.8157, allocations: 3.984 kB / 1.002 GB, free: 248 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006837/0.8164, allocations: 0.5134 MB / 1.002 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/0.8189, allocations: 1.675 MB / 1.004 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.8189, allocations: 7.875 kB / 1.004 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005093/0.8194, allocations: 111.9 kB / 1.004 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.8194, allocations: 8.219 kB / 1.004 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/0.8195, allocations: 15.98 kB / 1.004 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.603e-06/0.8195, allocations: 4 kB / 1.004 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.8195, allocations: 7.938 kB / 1.004 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.8208, allocations: 1.007 MB / 1.005 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/0.8212, allocations: 231.9 kB / 1.005 GB, free: 12.52 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.8213, allocations: 16 kB / 1.005 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004638/0.8218, allocations: 8.141 kB / 1.005 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.8219, allocations: 43.88 kB / 1.005 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.423e-05/0.8219, allocations: 23.98 kB / 1.006 GB, free: 12.43 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006829/0.8226, allocations: 0.5068 MB / 1.006 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8226, allocations: 0 / 1.006 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001097/0.8237, allocations: 303.3 kB / 1.006 GB, free: 11.63 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1]) * 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 (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00209/0.8258, allocations: 1.655 MB / 1.008 GB, free: 9.941 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009613/0.8268, allocations: 0.6166 MB / 1.009 GB, free: 9.332 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.8268, allocations: 0 / 1.009 GB, free: 9.332 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003917/0.8272, allocations: 276.3 kB / 1.009 GB, free: 9.062 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/0.829, allocations: 455.1 kB / 1.009 GB, free: 8.629 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.8396, allocations: 7.204 MB / 1.016 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007569/0.8403, allocations: 1.122 MB / 1.017 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0007656/0.8411, allocations: 267 kB / 1.018 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004619/0.8416, allocations: 363.3 kB / 1.018 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of SimCode: time 4.91e-07/0.8416, allocations: 0 / 1.018 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05013/0.8917, allocations: 23.46 MB / 1.041 GB, free: 8.191 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/9.436, allocations: 8.344 kB / 1.041 GB, free: 8.184 MB / 0.795 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)