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.001296/0.001296, allocations: 108.6 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 190.5 kB / 16.66 MB, free: 6.59 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002614/0.002614, allocations: 286.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.005/1.005, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002702/0.002702, allocations: 96.19 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1698, allocations: 86.97 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5372/0.707, allocations: 195.1 MB / 0.9564 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01828/0.7253, allocations: 14.32 MB / 0.9704 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.7264, allocations: 35.81 kB / 0.9704 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.7278, allocations: 0.5085 MB / 0.9709 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004526/0.7324, allocations: 1.882 MB / 0.9728 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002254/0.7347, allocations: 0.8612 MB / 0.9736 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003107/0.7378, allocations: 2.585 MB / 0.9761 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/0.7393, allocations: 1.11 MB / 0.9772 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003863/0.7432, allocations: 1.597 MB / 0.9788 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00156/0.7447, allocations: 0.9258 MB / 0.9797 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002209/0.745, allocations: 108 kB / 0.9798 GB, free: 7.934 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.7474, allocations: 1.095 MB / 0.9809 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000618/0.748, allocations: 0.4949 MB / 0.9813 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0008713/0.7489, allocations: 0.6376 MB / 0.982 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002965/0.7519, allocations: 1.927 MB / 0.9839 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.7519, allocations: 4 kB / 0.9839 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7519, allocations: 0 / 0.9839 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.656e-05/0.7519, allocations: 0 / 0.9839 GB, free: 3.762 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.002415/0.7544, allocations: 1.478 MB / 0.9853 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.7544, allocations: 12.03 kB / 0.9853 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001778/0.7546, allocations: 147.5 kB / 0.9855 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/0.756, allocations: 263 kB / 0.9857 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.7574, allocations: 0.8005 MB / 0.9865 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.07e-05/0.7575, allocations: 67.12 kB / 0.9865 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.7576, allocations: 96 kB / 0.9866 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.7594, allocations: 1.169 MB / 0.9878 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.7595, allocations: 4 kB / 0.9878 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.773e-05/0.7596, allocations: 43.94 kB / 0.9878 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.666e-05/0.7596, allocations: 34 kB / 0.9879 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.761, allocations: 0.9015 MB / 0.9887 GB, free: 14.59 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.006265/0.7673, allocations: 5.748 MB / 0.9944 GB, free: 8.383 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009506/0.7683, allocations: 0.5465 MB / 0.9949 GB, free: 7.832 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004642/0.7688, allocations: 318.5 kB / 0.9952 GB, free: 7.52 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006493/0.7694, allocations: 311.7 kB / 0.9955 GB, free: 7.16 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.7695, allocations: 39 kB / 0.9955 GB, free: 7.113 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.7695, allocations: 0 / 0.9955 GB, free: 7.113 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001614/0.7711, allocations: 0.803 MB / 0.9963 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.7712, allocations: 63.84 kB / 0.9964 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.7722, allocations: 0.751 MB / 0.9971 GB, free: 5.469 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.596e-05/0.7723, allocations: 37.7 kB / 0.9971 GB, free: 5.426 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004263/0.7727, allocations: 0.5193 MB / 0.9976 GB, free: 4.898 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.7729, allocations: 186.4 kB / 0.9978 GB, free: 4.715 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/0.7731, allocations: 146.6 kB / 0.998 GB, free: 4.562 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.7733, allocations: 337.9 kB / 0.9983 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/0.7737, allocations: 249.8 kB / 0.9985 GB, free: 3.984 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000656/0.7743, allocations: 0.5508 MB / 0.9991 GB, free: 3.301 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.7754, allocations: 0.8034 MB / 0.9998 GB, free: 2.387 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.7754, allocations: 4 kB / 0.9998 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001323/0.7767, allocations: 0.8472 MB / 1.001 GB, free: 1.531 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.7768, allocations: 8 kB / 1.001 GB, free: 1.523 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.7768, allocations: 8 kB / 1.001 GB, free: 1.516 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-05/0.7768, allocations: 12 kB / 1.001 GB, free: 1.504 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005639/0.7774, allocations: 159.7 kB / 1.001 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.7774, allocations: 15.94 kB / 1.001 GB, free: 1.332 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007155/0.7781, allocations: 91.28 kB / 1.001 GB, free: 1.242 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.53e-05/0.7782, allocations: 43.92 kB / 1.001 GB, free: 1.199 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.0004475/0.7787, allocations: 329.6 kB / 1.001 GB, free: 0.8672 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.7788, allocations: 91.44 kB / 1.001 GB, free: 0.7773 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.7798, allocations: 0.6179 MB / 1.002 GB, free: 152 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.7799, allocations: 4 kB / 1.002 GB, free: 148 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.7799, allocations: 0 / 1.002 GB, free: 148 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007694/0.7807, allocations: 0.5173 MB / 1.003 GB, free: 15.62 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/0.7835, allocations: 1.671 MB / 1.004 GB, free: 13.87 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.7835, allocations: 3.938 kB / 1.004 GB, free: 13.86 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/0.7841, allocations: 116 kB / 1.004 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.497e-06/0.7841, allocations: 4 kB / 1.004 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.7842, allocations: 19.98 kB / 1.004 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.7842, allocations: 0 / 1.004 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.7842, allocations: 5.562 kB / 1.004 GB, free: 13.72 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.7857, allocations: 1.015 MB / 1.005 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004013/0.7861, allocations: 236.4 kB / 1.006 GB, free: 12.42 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.7862, allocations: 8 kB / 1.006 GB, free: 12.41 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.7867, allocations: 19.98 kB / 1.006 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.684e-05/0.7868, allocations: 39.91 kB / 1.006 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.7868, allocations: 19.98 kB / 1.006 GB, free: 12.33 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006634/0.7875, allocations: 0.5107 MB / 1.006 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7875, allocations: 0 / 1.006 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001003/0.7885, allocations: 295.5 kB / 1.006 GB, free: 11.54 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.002052/0.7905, allocations: 1.678 MB / 1.008 GB, free: 9.828 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001005/0.7916, allocations: 0.6125 MB / 1.009 GB, free: 9.223 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.7916, allocations: 4 kB / 1.009 GB, free: 9.219 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.792, allocations: 276.5 kB / 1.009 GB, free: 8.949 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.7939, allocations: 442 kB / 1.009 GB, free: 8.523 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009491/0.8034, allocations: 7.253 MB / 1.016 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007804/0.8042, allocations: 1.118 MB / 1.017 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0007513/0.8049, allocations: 267 kB / 1.018 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004857/0.8054, allocations: 363.3 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of SimCode: time 7.01e-07/0.8054, allocations: 0 / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05554/0.861, allocations: 23.11 MB / 1.041 GB, free: 8.402 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.01/9.871, allocations: 9.844 kB / 1.041 GB, free: 8.395 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)