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.001192/0.001192, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001259/0.001259, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.359/1.359, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002216/0.002216, allocations: 293.2 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.9512/0.9512, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 99.83 kB / 0.6821 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4261/0.4278, allocations: 86.98 MB / 0.767 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003638/0.4315, allocations: 2.491 MB / 0.7695 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.4327, allocations: 0.7751 MB / 0.7702 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.965e-05/0.4328, allocations: 4 kB / 0.7702 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.434, allocations: 0.5374 MB / 0.7708 GB, free: 140 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.4343, allocations: 103.5 kB / 0.7709 GB, free: 36 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000317/0.4346, allocations: 115.7 kB / 0.771 GB, free: 15.92 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.4349, allocations: 191.4 kB / 0.7711 GB, free: 15.73 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.4352, allocations: 162.1 kB / 0.7713 GB, free: 15.57 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.4354, allocations: 83.73 kB / 0.7714 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.4356, allocations: 99.59 kB / 0.7715 GB, free: 15.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.4356, allocations: 12 kB / 0.7715 GB, free: 15.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002014/0.4358, allocations: 107.8 kB / 0.7716 GB, free: 15.27 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.079e-05/0.4359, allocations: 51.89 kB / 0.7716 GB, free: 15.22 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.985e-05/0.436, allocations: 67.67 kB / 0.7717 GB, free: 15.15 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.4362, allocations: 225.9 kB / 0.7719 GB, free: 14.93 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4363, allocations: 0 / 0.7719 GB, free: 14.93 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4363, allocations: 4 kB / 0.7719 GB, free: 14.93 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.4363, allocations: 4 kB / 0.7719 GB, free: 14.93 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.0005466/0.4368, allocations: 451.2 kB / 0.7724 GB, free: 14.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.4369, allocations: 8.031 kB / 0.7724 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.4372, allocations: 40.72 kB / 0.7724 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.4375, allocations: 216.1 kB / 0.7726 GB, free: 14.14 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.4375, allocations: 16.66 kB / 0.7726 GB, free: 14.12 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.4375, allocations: 8.375 kB / 0.7726 GB, free: 14.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.4379, allocations: 236.2 kB / 0.7729 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.4379, allocations: 4 kB / 0.7729 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.4379, allocations: 4 kB / 0.7729 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.438, allocations: 20.25 kB / 0.7729 GB, free: 13.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.4382, allocations: 152.7 kB / 0.773 GB, free: 13.69 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.4392, allocations: 1.127 MB / 0.7741 GB, free: 12.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 7.615e-05/0.4393, allocations: 50.5 kB / 0.7742 GB, free: 12.37 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.388e-05/0.4393, allocations: 20.94 kB / 0.7742 GB, free: 12.35 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.4394, allocations: 0 / 0.7742 GB, free: 12.35 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.4394, allocations: 30.56 kB / 0.7742 GB, free: 12.31 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.4394, allocations: 0 / 0.7742 GB, free: 12.31 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0001842/0.4396, allocations: 81.52 kB / 0.7743 GB, free: 12.22 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/0.4396, allocations: 51.41 kB / 0.7744 GB, free: 12.16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.4398, allocations: 174.7 kB / 0.7745 GB, free: 11.98 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.4398, allocations: 33.64 kB / 0.7746 GB, free: 11.95 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.161e-05/0.4399, allocations: 139.4 kB / 0.7747 GB, free: 11.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.4399, allocations: 15.75 kB / 0.7747 GB, free: 11.79 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.395e-05/0.4399, allocations: 33.64 kB / 0.7747 GB, free: 11.75 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.4401, allocations: 322.8 kB / 0.775 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.77e-05/0.4401, allocations: 32.84 kB / 0.7751 GB, free: 11.39 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.99e-05/0.4402, allocations: 89.38 kB / 0.7752 GB, free: 11.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.4403, allocations: 125.3 kB / 0.7753 GB, free: 11.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4403, allocations: 4 kB / 0.7753 GB, free: 11.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000196/0.4405, allocations: 133.3 kB / 0.7754 GB, free: 10.97 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.4406, allocations: 4 kB / 0.7754 GB, free: 10.97 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.4406, allocations: 4 kB / 0.7754 GB, free: 10.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.4406, allocations: 7.984 kB / 0.7754 GB, free: 10.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.4407, allocations: 27.88 kB / 0.7754 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.4407, allocations: 4.312 kB / 0.7755 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.548e-05/0.4408, allocations: 23.75 kB / 0.7755 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.4408, allocations: 11.98 kB / 0.7755 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.92e-05/0.4409, allocations: 118.5 kB / 0.7756 GB, free: 10.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.542e-05/0.441, allocations: 95.36 kB / 0.7757 GB, free: 10.65 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001209/0.4411, allocations: 117.3 kB / 0.7758 GB, free: 10.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.313e-06/0.4411, allocations: 4 kB / 0.7758 GB, free: 10.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001935/0.4413, allocations: 133.3 kB / 0.7759 GB, free: 10.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.724e-06/0.4414, allocations: 4.312 kB / 0.7759 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.4414, allocations: 8 kB / 0.7759 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.508e-06/0.4414, allocations: 4 kB / 0.776 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.582e-05/0.4415, allocations: 23.98 kB / 0.776 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.4415, allocations: 7.875 kB / 0.776 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.181e-05/0.4415, allocations: 8.281 kB / 0.776 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.4416, allocations: 8 kB / 0.776 GB, free: 10.3 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 0.0001044/0.4417, allocations: 188.2 kB / 0.7762 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.4417, allocations: 11.81 kB / 0.7762 GB, free: 10.09 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.4417, allocations: 24.91 kB / 0.7762 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4417, allocations: 3.938 kB / 0.7762 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4418, allocations: 0 / 0.7762 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/0.4418, allocations: 85.02 kB / 0.7763 GB, free: 9.961 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.4418, allocations: 0 / 0.7763 GB, free: 9.961 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.371e-05/0.4419, allocations: 7.984 kB / 0.7763 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.616e-05/0.4419, allocations: 4 kB / 0.7763 GB, free: 9.949 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001207/0.442, allocations: 136.9 kB / 0.7764 GB, free: 9.809 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001447/0.4422, allocations: 246.6 kB / 0.7767 GB, free: 9.551 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.689e-05/0.4422, allocations: 12 kB / 0.7767 GB, free: 9.539 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.438e-05/0.4423, allocations: 129.8 kB / 0.7768 GB, free: 9.414 MB / 0.545 GB Notification: Performance of Backend: time 3.9e-07/0.4423, allocations: 3.938 kB / 0.7768 GB, free: 9.41 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005944/0.4429, allocations: 234.1 kB / 0.777 GB, free: 9.172 MB / 0.545 GB Notification: Performance of SimCode: time 0.0006906/0.4436, allocations: 0.7071 MB / 0.7777 GB, free: 8.422 MB / 0.545 GB Notification: Performance of Templates: time 0.004223/0.4479, allocations: 1.543 MB / 0.7792 GB, free: 6.887 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)