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.007458/0.007458, allocations: 100.9 kB / 15.73 MB, free: 6.027 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.00189/0.001891, allocations: 183.5 kB / 16.67 MB, free: 5.965 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002128/0.002128, allocations: 294.1 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.9651/0.9651, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 92.19 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1444, allocations: 86.97 MB / 0.7664 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003684/0.1481, allocations: 2.507 MB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001258/0.1494, allocations: 0.7713 MB / 0.7696 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.927e-05/0.1495, allocations: 4 kB / 0.7696 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.1507, allocations: 0.5316 MB / 0.7701 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.151, allocations: 107.5 kB / 0.7702 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.1513, allocations: 115.7 kB / 0.7703 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.1515, allocations: 187.4 kB / 0.7705 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/0.1519, allocations: 178.1 kB / 0.7706 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.152, allocations: 79.7 kB / 0.7707 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.1522, allocations: 95.64 kB / 0.7708 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.1522, allocations: 12 kB / 0.7708 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.1524, allocations: 103.8 kB / 0.7709 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.856e-05/0.1525, allocations: 55.88 kB / 0.771 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.689e-05/0.1526, allocations: 71.66 kB / 0.771 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.1528, allocations: 231.2 kB / 0.7713 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1529, allocations: 0 / 0.7713 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.102e-06/0.1529, allocations: 0 / 0.7713 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.1529, allocations: 4 kB / 0.7713 GB, free: 3.406 MB / 0.5606 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.000512/0.1534, allocations: 435.3 kB / 0.7717 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.1534, allocations: 12.03 kB / 0.7717 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000354/0.1538, allocations: 48.7 kB / 0.7717 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.154, allocations: 216.1 kB / 0.7719 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.154, allocations: 12.64 kB / 0.772 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.1541, allocations: 12.38 kB / 0.772 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/0.1544, allocations: 239.6 kB / 0.7722 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1544, allocations: 0 / 0.7722 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.1544, allocations: 4 kB / 0.7722 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.1545, allocations: 16.27 kB / 0.7722 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.1547, allocations: 144.7 kB / 0.7724 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009818/0.1557, allocations: 1.127 MB / 0.7735 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 8.399e-05/0.1558, allocations: 50.48 kB / 0.7735 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.032e-05/0.1558, allocations: 16.86 kB / 0.7735 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.1558, allocations: 7.922 kB / 0.7735 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.682e-05/0.1559, allocations: 30.56 kB / 0.7736 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.1559, allocations: 0 / 0.7736 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4): time 0.0001739/0.156, allocations: 85.52 kB / 0.7736 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.1561, allocations: 55.34 kB / 0.7737 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.1562, allocations: 179.2 kB / 0.7739 GB, free: 476 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.1562, allocations: 29.7 kB / 0.7739 GB, free: 440 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.043e-05/0.1563, allocations: 143.4 kB / 0.774 GB, free: 292 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.13e-05/0.1563, allocations: 11.81 kB / 0.774 GB, free: 280 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.463e-05/0.1564, allocations: 33.62 kB / 0.7741 GB, free: 240 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.2798/0.4362, allocations: 318.8 kB / 0.7744 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.404e-05/0.4363, allocations: 24.08 kB / 0.7744 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.611e-05/0.4364, allocations: 88.48 kB / 0.7745 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.4365, allocations: 125.3 kB / 0.7746 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4365, allocations: 1.438 kB / 0.7746 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002187/0.4367, allocations: 131.2 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.4368, allocations: 7.438 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.4368, allocations: 2.812 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.4368, allocations: 4.688 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.4369, allocations: 26.91 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.4369, allocations: 8.562 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.852e-05/0.437, allocations: 15.22 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.437, allocations: 7.781 kB / 0.7748 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.804e-05/0.4371, allocations: 127.6 kB / 0.7749 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.46e-05/0.4372, allocations: 89.31 kB / 0.775 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.32e-05/0.4373, allocations: 122.3 kB / 0.7751 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.163e-06/0.4373, allocations: 1.281 kB / 0.7751 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001749/0.4375, allocations: 136 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.916e-06/0.4375, allocations: 6.344 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.4375, allocations: 3.188 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.599e-06/0.4375, allocations: 3.5 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.112e-05/0.4376, allocations: 29.84 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.4376, allocations: 3.219 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.745e-05/0.4377, allocations: 12.41 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.4377, allocations: 9.125 kB / 0.7753 GB, free: 14.52 MB / 0.5606 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 5.21e-05/0.4377, allocations: 193.3 kB / 0.7755 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.4378, allocations: 8.656 kB / 0.7755 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.4378, allocations: 13.69 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.4378, allocations: 1.156 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.4378, allocations: 7.25 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.4378, allocations: 1.219 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003544/0.4382, allocations: 470 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4382, allocations: 3.844 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.189e-05/0.4382, allocations: 15.14 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4382, allocations: 2.031 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.4382, allocations: 4.25 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4383, allocations: 2.203 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4383, allocations: 1.062 kB / 0.776 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.4384, allocations: 116.4 kB / 0.7761 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-05/0.4384, allocations: 91.64 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.4384, allocations: 3.109 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.314e-05/0.4385, allocations: 0.875 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.4385, allocations: 7.156 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.4385, allocations: 2.531 kB / 0.7762 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.252e-05/0.4386, allocations: 125.9 kB / 0.7763 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.91e-07/0.4386, allocations: 3.469 kB / 0.7763 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003329/0.4389, allocations: 58.16 kB / 0.7764 GB, free: 13.63 MB / 0.5606 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 7.207e-05/0.439, allocations: 96.81 kB / 0.7765 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000182/0.4392, allocations: 113 kB / 0.7766 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4392, allocations: 0 / 0.7766 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.513e-05/0.4392, allocations: 19.53 kB / 0.7766 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.4395, allocations: 28.09 kB / 0.7766 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004212/0.4399, allocations: 270.2 kB / 0.7769 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.4401, allocations: 0.7261 MB / 0.7776 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.858e-05/0.4402, allocations: 25.17 kB / 0.7776 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.4402, allocations: 16.97 kB / 0.7776 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of SimCode: time 2e-07/0.4402, allocations: 0 / 0.7776 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of Templates: time 0.003132/0.4433, allocations: 0.8766 MB / 0.7785 GB, free: 12.56 MB / 0.5606 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)