Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005893/0.005893, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001121/0.001122, allocations: 191.8 kB / 16.67 MB, free: 5.52 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002068/0.002068, allocations: 294 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9185/0.9185, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 91.86 kB / 0.6814 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4232/0.4255, allocations: 86.98 MB / 0.7664 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003681/0.4292, allocations: 2.505 MB / 0.7688 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.4306, allocations: 0.7634 MB / 0.7696 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.293e-05/0.4307, allocations: 4 kB / 0.7696 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.4318, allocations: 0.5413 MB / 0.7701 GB, free: 256 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.4321, allocations: 103.5 kB / 0.7702 GB, free: 152 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.4323, allocations: 107.7 kB / 0.7703 GB, free: 44 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.4326, allocations: 195.4 kB / 0.7705 GB, free: 15.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000336/0.4329, allocations: 170.1 kB / 0.7706 GB, free: 15.68 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.827e-05/0.4331, allocations: 79.75 kB / 0.7707 GB, free: 15.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.4333, allocations: 95.64 kB / 0.7708 GB, free: 15.5 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.4333, allocations: 15.94 kB / 0.7708 GB, free: 15.49 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.4335, allocations: 103.8 kB / 0.7709 GB, free: 15.39 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.4335, allocations: 55.88 kB / 0.771 GB, free: 15.33 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.745e-05/0.4336, allocations: 71.67 kB / 0.771 GB, free: 15.26 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000283/0.4339, allocations: 229.9 kB / 0.7713 GB, free: 15.04 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4339, allocations: 0 / 0.7713 GB, free: 15.04 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4339, allocations: 0 / 0.7713 GB, free: 15.04 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.4339, allocations: 0 / 0.7713 GB, free: 15.04 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006072/0.4346, allocations: 443.2 kB / 0.7717 GB, free: 14.55 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.4346, allocations: 12.03 kB / 0.7717 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003641/0.435, allocations: 48.7 kB / 0.7717 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.4352, allocations: 216.1 kB / 0.7719 GB, free: 14.25 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.4352, allocations: 8.656 kB / 0.772 GB, free: 14.24 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.4353, allocations: 12.38 kB / 0.772 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000344/0.4356, allocations: 240.2 kB / 0.7722 GB, free: 13.97 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.4356, allocations: 0 / 0.7722 GB, free: 13.97 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.025e-05/0.4357, allocations: 8 kB / 0.7722 GB, free: 13.96 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.251e-05/0.4357, allocations: 16.27 kB / 0.7722 GB, free: 13.95 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.4359, allocations: 144.7 kB / 0.7724 GB, free: 13.81 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009927/0.4369, allocations: 1.134 MB / 0.7735 GB, free: 12.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.474e-05/0.437, allocations: 46.48 kB / 0.7735 GB, free: 12.49 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.221e-05/0.437, allocations: 16.86 kB / 0.7735 GB, free: 12.47 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.4371, allocations: 0 / 0.7735 GB, free: 12.47 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.4371, allocations: 34.64 kB / 0.7736 GB, free: 12.43 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.4371, allocations: 0 / 0.7736 GB, free: 12.43 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.000188/0.4373, allocations: 81.53 kB / 0.7736 GB, free: 12.34 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.4373, allocations: 51.41 kB / 0.7737 GB, free: 12.28 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.4375, allocations: 171 kB / 0.7738 GB, free: 12.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.4375, allocations: 29.64 kB / 0.7739 GB, free: 12.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.157e-05/0.4376, allocations: 139.4 kB / 0.774 GB, free: 11.93 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.4376, allocations: 19.75 kB / 0.774 GB, free: 11.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.4376, allocations: 33.7 kB / 0.7741 GB, free: 11.87 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.4378, allocations: 318.8 kB / 0.7744 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.708e-05/0.4378, allocations: 32.84 kB / 0.7744 GB, free: 11.51 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.424e-05/0.4379, allocations: 92.92 kB / 0.7745 GB, free: 11.39 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.438, allocations: 133.2 kB / 0.7746 GB, free: 11.23 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.438, allocations: 0 / 0.7746 GB, free: 11.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002029/0.4383, allocations: 133.3 kB / 0.7747 GB, free: 11.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.4383, allocations: 10.5 kB / 0.7747 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.4383, allocations: 8.312 kB / 0.7748 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.4383, allocations: 7.938 kB / 0.7748 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.4384, allocations: 27.92 kB / 0.7748 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.4384, allocations: 4 kB / 0.7748 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.142e-05/0.4385, allocations: 19.75 kB / 0.7748 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.4385, allocations: 8 kB / 0.7748 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.507e-05/0.4386, allocations: 122.5 kB / 0.7749 GB, free: 10.89 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.098e-05/0.4387, allocations: 85.44 kB / 0.775 GB, free: 10.77 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001201/0.4388, allocations: 129.2 kB / 0.7751 GB, free: 10.61 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.112e-06/0.4388, allocations: 0 / 0.7751 GB, free: 10.61 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001877/0.439, allocations: 137.4 kB / 0.7753 GB, free: 10.47 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.105e-06/0.4391, allocations: 8 kB / 0.7753 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-06/0.4391, allocations: 0 / 0.7753 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.551e-06/0.4391, allocations: 4 kB / 0.7753 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.207e-05/0.4391, allocations: 20 kB / 0.7753 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.4392, allocations: 15.86 kB / 0.7753 GB, free: 10.42 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.868e-05/0.4392, allocations: 8 kB / 0.7753 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-06/0.4392, allocations: 4 kB / 0.7753 GB, free: 10.41 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (14): * Single equations (assignments): 14 * 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 9.325e-05/0.4393, allocations: 192.4 kB / 0.7755 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.4394, allocations: 11.81 kB / 0.7755 GB, free: 10.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.138e-05/0.4394, allocations: 12.94 kB / 0.7755 GB, free: 10.19 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.4394, allocations: 3.938 kB / 0.7755 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.4394, allocations: 0 / 0.7755 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4394, allocations: 7.984 kB / 0.7755 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004028/0.4398, allocations: 473.1 kB / 0.776 GB, free: 9.645 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4399, allocations: 0 / 0.776 GB, free: 9.645 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.312e-05/0.4399, allocations: 8.281 kB / 0.776 GB, free: 9.637 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4399, allocations: 0 / 0.776 GB, free: 9.637 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.4399, allocations: 4 kB / 0.776 GB, free: 9.633 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.4399, allocations: 7.938 kB / 0.776 GB, free: 9.625 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4399, allocations: 0 / 0.776 GB, free: 9.625 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.44, allocations: 131.4 kB / 0.7761 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.4401, allocations: 85.02 kB / 0.7762 GB, free: 9.367 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.4401, allocations: 4 kB / 0.7762 GB, free: 9.363 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.474e-05/0.4402, allocations: 0 / 0.7762 GB, free: 9.363 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.801e-05/0.4402, allocations: 7.984 kB / 0.7762 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.4402, allocations: 4 kB / 0.7762 GB, free: 9.352 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.579e-05/0.4403, allocations: 125.8 kB / 0.7764 GB, free: 9.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4403, allocations: 0 / 0.7764 GB, free: 9.23 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003336/0.4406, allocations: 51.84 kB / 0.7764 GB, free: 9.18 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.0001/0.4408, allocations: 103.2 kB / 0.7765 GB, free: 9.066 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001919/0.441, allocations: 108.9 kB / 0.7766 GB, free: 8.961 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.441, allocations: 4.062 kB / 0.7766 GB, free: 8.957 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.524e-05/0.441, allocations: 19.92 kB / 0.7766 GB, free: 8.938 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.4413, allocations: 27.39 kB / 0.7767 GB, free: 8.914 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004534/0.4417, allocations: 267.1 kB / 0.7769 GB, free: 8.617 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.442, allocations: 0.7244 MB / 0.7776 GB, free: 7.867 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.003e-05/0.4421, allocations: 36.59 kB / 0.7777 GB, free: 7.832 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/0.4421, allocations: 11.44 kB / 0.7777 GB, free: 7.82 MB / 0.545 GB Notification: Performance of SimCode: time 4.71e-07/0.4421, allocations: 0 / 0.7777 GB, free: 7.82 MB / 0.545 GB Notification: Performance of Templates: time 0.003011/0.4451, allocations: 0.8544 MB / 0.7785 GB, free: 6.969 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)