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: translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 115.4 kB / 16.39 MB, free: 6.004 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.001105/0.001105, allocations: 190.7 kB / 17.32 MB, free: 5.613 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 291 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9176/0.9176, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 95.86 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4429, allocations: 86.99 MB / 0.767 GB, free: 4.086 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.1936/0.6366, allocations: 195.1 MB / 0.9575 GB, free: 272 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4961/1.133, allocations: 14.3 MB / 0.9715 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001865/1.135, allocations: 36.62 kB / 0.9715 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001567/1.136, allocations: 0.4982 MB / 0.972 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004977/1.141, allocations: 1.89 MB / 0.9739 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002582/1.144, allocations: 0.8723 MB / 0.9747 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003435/1.147, allocations: 2.576 MB / 0.9772 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/1.149, allocations: 1.115 MB / 0.9783 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004219/1.153, allocations: 1.612 MB / 0.9799 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/1.155, allocations: 0.9193 MB / 0.9808 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001706/1.155, allocations: 106.6 kB / 0.9809 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002318/1.157, allocations: 1.092 MB / 0.9819 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004854/1.158, allocations: 0.4982 MB / 0.9824 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007892/1.158, allocations: 0.6389 MB / 0.9831 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00242/1.161, allocations: 1.904 MB / 0.9849 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/1.161, allocations: 9.031 kB / 0.9849 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.853e-06/1.161, allocations: 0 / 0.9849 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.612e-05/1.161, allocations: 0 / 0.9849 GB, free: 1.438 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.00206/1.163, allocations: 1.454 MB / 0.9863 GB, free: 16.66 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/1.163, allocations: 10.84 kB / 0.9864 GB, free: 16.66 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001282/1.164, allocations: 250.5 kB / 0.9866 GB, free: 16.6 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/1.166, allocations: 0.7859 MB / 0.9874 GB, free: 16.29 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.656e-05/1.166, allocations: 70.56 kB / 0.9874 GB, free: 16.29 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/1.166, allocations: 98.75 kB / 0.9875 GB, free: 16.29 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/1.167, allocations: 1.174 MB / 0.9887 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/1.167, allocations: 6.594 kB / 0.9887 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.942e-05/1.167, allocations: 40.09 kB / 0.9887 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.845e-05/1.167, allocations: 37 kB / 0.9888 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/1.169, allocations: 0.9022 MB / 0.9896 GB, free: 16.05 MB / 0.7325 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.005005/1.174, allocations: 5.747 MB / 0.9952 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007297/1.174, allocations: 0.5397 MB / 0.9958 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/1.175, allocations: 316 kB / 0.9961 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000561/1.175, allocations: 311.9 kB / 0.9964 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/1.175, allocations: 39.03 kB / 0.9964 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.385e-06/1.175, allocations: 0 / 0.9964 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001341/1.177, allocations: 0.8064 MB / 0.9972 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/1.177, allocations: 57.66 kB / 0.9972 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007875/1.177, allocations: 0.7482 MB / 0.998 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.06e-05/1.178, allocations: 37.55 kB / 0.998 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/1.178, allocations: 0.5111 MB / 0.9985 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/1.178, allocations: 175.5 kB / 0.9987 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/1.178, allocations: 143.3 kB / 0.9988 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.178, allocations: 334 kB / 0.9991 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000322/1.179, allocations: 250.6 kB / 0.9994 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005478/1.179, allocations: 0.5548 MB / 0.9999 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008642/1.18, allocations: 0.7975 MB / 1.001 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/1.18, allocations: 2.938 kB / 1.001 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001124/1.181, allocations: 0.8502 MB / 1.002 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/1.181, allocations: 7.906 kB / 1.002 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/1.181, allocations: 9.125 kB / 1.002 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/1.181, allocations: 10.78 kB / 1.002 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005106/1.182, allocations: 156 kB / 1.002 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.761e-05/1.182, allocations: 16.23 kB / 1.002 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007171/1.183, allocations: 85.03 kB / 1.002 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.076e-05/1.183, allocations: 39 kB / 1.002 GB, free: 10.16 MB / 0.7325 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.0004166/1.183, allocations: 336 kB / 1.002 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/1.183, allocations: 85.02 kB / 1.002 GB, free: 9.996 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008731/1.184, allocations: 0.6165 MB / 1.003 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/1.184, allocations: 7.312 kB / 1.003 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/1.184, allocations: 0 / 1.003 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000626/1.185, allocations: 0.5167 MB / 1.003 GB, free: 9.863 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/1.187, allocations: 1.675 MB / 1.005 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1.187, allocations: 2.938 kB / 1.005 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/1.187, allocations: 109.1 kB / 1.005 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/1.187, allocations: 3.656 kB / 1.005 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/1.187, allocations: 17.78 kB / 1.005 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.148e-06/1.187, allocations: 10.03 kB / 1.005 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.187, allocations: 4.406 kB / 1.005 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/1.189, allocations: 1.009 MB / 1.006 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002782/1.189, allocations: 230.6 kB / 1.006 GB, free: 9.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.72e-05/1.189, allocations: 14.38 kB / 1.006 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/1.189, allocations: 23.61 kB / 1.006 GB, free: 9.086 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/1.19, allocations: 37.34 kB / 1.006 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.454e-05/1.19, allocations: 20.84 kB / 1.006 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000535/1.19, allocations: 0.5105 MB / 1.007 GB, free: 8.992 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/1.19, allocations: 1.062 kB / 1.007 GB, free: 8.992 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008723/1.191, allocations: 299.4 kB / 1.007 GB, free: 8.953 MB / 0.7325 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.0004904/1.191, allocations: 202.8 kB / 1.007 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000882/1.192, allocations: 0.6114 MB / 1.008 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/1.192, allocations: 3.156 kB / 1.008 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003037/1.193, allocations: 274.5 kB / 1.008 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/1.195, allocations: 446.2 kB / 1.009 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/1.197, allocations: 2.003 MB / 1.011 GB, free: 7.953 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/1.198, allocations: 1.127 MB / 1.012 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/1.198, allocations: 80.12 kB / 1.012 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of SimCode: time 6.51e-07/1.198, allocations: 0 / 1.012 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of Templates: time 0.02282/1.221, allocations: 14.54 MB / 1.026 GB, free: 4.277 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)