Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.376/1.376, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009593/0.0009591, allocations: 185.2 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.659/1.659, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009121/0.0009123, allocations: 102.3 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.0003371, allocations: 9.781 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2251, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1919/0.417, allocations: 153.7 MB / 1.05 GB, free: 6.023 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/0.4174, allocations: 91.92 kB / 1.05 GB, free: 5.934 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.51/0.9274, allocations: 9.563 MB / 1.06 GB, free: 152.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 9.32e-07/0.9274, allocations: 1.719 kB / 1.06 GB, free: 152.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.17e-05/0.9274, allocations: 2.875 kB / 1.06 GB, free: 152.3 MB / 0.698 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.0004635/0.9279, allocations: 431.5 kB / 1.06 GB, free: 151.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.928, allocations: 13.88 kB / 1.06 GB, free: 151.9 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004062/0.9284, allocations: 48.56 kB / 1.06 GB, free: 151.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.9286, allocations: 216.3 kB / 1.06 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.9286, allocations: 11.25 kB / 1.06 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.9287, allocations: 11.59 kB / 1.06 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.929, allocations: 223.8 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.9291, allocations: 0 / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.249e-05/0.9291, allocations: 8.391 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-05/0.9291, allocations: 10.69 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.9294, allocations: 145.9 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009676/0.9303, allocations: 1.148 MB / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.634e-05/0.9304, allocations: 31.39 kB / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.126e-06/0.9304, allocations: 3.156 kB / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.9304, allocations: 31.22 kB / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.293e-06/0.9304, allocations: 0 / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001697/0.9306, allocations: 73.83 kB / 1.062 GB, free: 150.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.308e-05/0.9306, allocations: 51.41 kB / 1.062 GB, free: 150.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.9308, allocations: 157.8 kB / 1.062 GB, free: 150.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.9308, allocations: 32.2 kB / 1.062 GB, free: 150.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.9309, allocations: 145.3 kB / 1.062 GB, free: 150.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.182e-05/0.9309, allocations: 10.41 kB / 1.062 GB, free: 150.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.431e-06/0.9309, allocations: 7.375 kB / 1.062 GB, free: 150.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.198e-05/0.931, allocations: 325.5 kB / 1.063 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.856e-05/0.931, allocations: 22.23 kB / 1.063 GB, free: 149.9 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.566e-05/0.9311, allocations: 89.17 kB / 1.063 GB, free: 149.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.801e-05/0.9312, allocations: 36.5 kB / 1.063 GB, free: 149.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.9312, allocations: 0 / 1.063 GB, free: 149.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001812/0.9313, allocations: 141.9 kB / 1.063 GB, free: 149.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.9316, allocations: 0.9614 MB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.9316, allocations: 2.75 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.9316, allocations: 6.109 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.9317, allocations: 26.19 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.9317, allocations: 6.812 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.457e-05/0.9318, allocations: 15.89 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.9318, allocations: 9.484 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.092e-06/0.9318, allocations: 6.906 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001293/0.932, allocations: 97 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-06/0.932, allocations: 2.906 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.527e-06/0.932, allocations: 2.844 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.663e-05/0.932, allocations: 22.83 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.9321, allocations: 7.609 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.937e-05/0.9321, allocations: 24.09 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.9321, allocations: 5.438 kB / 1.064 GB, free: 148.7 MB / 0.698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.364e-05/0.9322, allocations: 211.7 kB / 1.064 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.9323, allocations: 9.656 kB / 1.064 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.946e-05/0.9323, allocations: 11.52 kB / 1.064 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.9323, allocations: 3.391 kB / 1.064 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.9323, allocations: 0 / 1.064 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.9323, allocations: 0.6562 kB / 1.064 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003298/0.9327, allocations: 463.7 kB / 1.065 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.9327, allocations: 0 / 1.065 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.363e-05/0.9327, allocations: 6.469 kB / 1.065 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.9327, allocations: 0.7031 kB / 1.065 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.9327, allocations: 2.969 kB / 1.065 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.9327, allocations: 3.938 kB / 1.065 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.9327, allocations: 7.594 kB / 1.065 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.9329, allocations: 125.4 kB / 1.065 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.9329, allocations: 89.66 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.9329, allocations: 4.562 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.359e-05/0.933, allocations: 3.094 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.537e-05/0.933, allocations: 4.609 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.933, allocations: 3.359 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 8.755e-05/0.9331, allocations: 127.5 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9331, allocations: 0 / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003141/0.9334, allocations: 60.03 kB / 1.065 GB, free: 147.7 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001074/0.9335, allocations: 104 kB / 1.065 GB, free: 147.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001736/0.9337, allocations: 109.1 kB / 1.065 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9337, allocations: 0 / 1.065 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.931e-05/0.9338, allocations: 8.109 kB / 1.065 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001983/0.934, allocations: 22.27 kB / 1.065 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004619/0.9344, allocations: 312.2 kB / 1.066 GB, free: 147.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.9346, allocations: 0.726 MB / 1.066 GB, free: 146.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.557e-05/0.9347, allocations: 25.17 kB / 1.066 GB, free: 146.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.926e-05/0.9348, allocations: 17.59 kB / 1.066 GB, free: 146.7 MB / 0.698 GB Notification: Performance of SimCode: time 3.61e-07/0.9348, allocations: 0 / 1.066 GB, free: 146.7 MB / 0.698 GB Notification: Performance of Templates: time 0.002927/0.9377, allocations: 0.7648 MB / 1.067 GB, free: 146.6 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches