Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",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.00473/0.00473, allocations: 98.3 kB / 15.73 MB, free: 5.977 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.001298/0.001298, allocations: 196.8 kB / 16.68 MB, free: 5.906 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.598/2.598, allocations: 437 MB / 0.7105 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 63.89 kB / 1.018 GB, free: 9.879 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8156/0.8175, allocations: 151.6 MB / 1.166 GB, free: 3.762 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004797/0.8224, allocations: 3.089 MB / 1.169 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002952/0.8253, allocations: 1.722 MB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.8255, allocations: 4 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.8266, allocations: 334.7 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005137/0.8271, allocations: 211 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004623/0.8276, allocations: 180.9 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004035/0.828, allocations: 323 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004208/0.8284, allocations: 240.7 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.8286, allocations: 131.6 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.829, allocations: 159.5 kB / 1.172 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.27e-05/0.829, allocations: 20 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004209/0.8295, allocations: 247.5 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.8296, allocations: 115.7 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.8298, allocations: 115.5 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000661/0.8304, allocations: 422.2 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.8305, allocations: 7.938 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.994e-06/0.8305, allocations: 0 / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.8305, allocations: 0 / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001135/0.8316, allocations: 0.5532 MB / 1.174 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.8317, allocations: 8.922 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.286e-05/0.8318, allocations: 58.72 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007475/0.8325, allocations: 96.64 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.8329, allocations: 260 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.8329, allocations: 12.81 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.833, allocations: 32.55 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006011/0.8336, allocations: 376.9 kB / 1.175 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.8337, allocations: 0 / 1.175 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.8337, allocations: 7.984 kB / 1.175 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/0.8338, allocations: 28.42 kB / 1.175 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005227/0.8343, allocations: 309.5 kB / 1.175 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.8363, allocations: 1.537 MB / 1.176 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004544/0.8368, allocations: 224.9 kB / 1.177 GB, free: 8.719 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.837, allocations: 116.8 kB / 1.177 GB, free: 8.602 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/0.8372, allocations: 93.09 kB / 1.177 GB, free: 8.492 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.8372, allocations: 30.56 kB / 1.177 GB, free: 8.453 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=18): time 1.954e-06/0.8372, allocations: 0 / 1.177 GB, free: 8.453 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.001426/0.8386, allocations: 0.7977 MB / 1.178 GB, free: 7.605 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.8387, allocations: 63.36 kB / 1.178 GB, free: 7.531 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/0.8389, allocations: 187.8 kB / 1.178 GB, free: 7.34 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.839, allocations: 29.7 kB / 1.178 GB, free: 7.305 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.8391, allocations: 164.2 kB / 1.178 GB, free: 7.141 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.728e-05/0.8392, allocations: 75.38 kB / 1.178 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.8393, allocations: 49.7 kB / 1.178 GB, free: 7.012 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.8395, allocations: 338.8 kB / 1.179 GB, free: 6.672 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.8397, allocations: 115.9 kB / 1.179 GB, free: 6.559 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.8399, allocations: 163.5 kB / 1.179 GB, free: 6.379 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.8403, allocations: 296 kB / 1.179 GB, free: 6.07 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.8403, allocations: 0 / 1.179 GB, free: 6.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008309/0.8412, allocations: 429.5 kB / 1.179 GB, free: 5.645 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.8412, allocations: 10.5 kB / 1.179 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.8412, allocations: 0 / 1.179 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004426/0.8417, allocations: 100.9 kB / 1.18 GB, free: 5.535 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.8419, allocations: 51.91 kB / 1.18 GB, free: 5.484 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.8443, allocations: 1.875 MB / 1.181 GB, free: 3.465 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.8445, allocations: 19.95 kB / 1.181 GB, free: 3.445 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.8445, allocations: 15.94 kB / 1.181 GB, free: 3.43 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000201/0.8447, allocations: 158.3 kB / 1.182 GB, free: 3.266 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.8448, allocations: 19.97 kB / 1.182 GB, free: 3.246 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/0.8454, allocations: 295.3 kB / 1.182 GB, free: 2.949 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.862e-06/0.8454, allocations: 4 kB / 1.182 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.8454, allocations: 0 / 1.182 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.8454, allocations: 7.922 kB / 1.182 GB, free: 2.938 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.8465, allocations: 0.703 MB / 1.183 GB, free: 2.172 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.8465, allocations: 4 kB / 1.183 GB, free: 2.168 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003029/0.8468, allocations: 56.08 kB / 1.183 GB, free: 2.113 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.8468, allocations: 11.94 kB / 1.183 GB, free: 2.102 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.8468, allocations: 4 kB / 1.183 GB, free: 2.098 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.8468, allocations: 4 kB / 1.183 GB, free: 2.094 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.8468, allocations: 0 / 1.183 GB, free: 2.094 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006605/0.8475, allocations: 0.5215 MB / 1.183 GB, free: 1.551 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.8476, allocations: 117 kB / 1.183 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.8477, allocations: 4 kB / 1.183 GB, free: 1.414 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.8479, allocations: 15.98 kB / 1.183 GB, free: 1.398 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.8479, allocations: 11.97 kB / 1.183 GB, free: 1.387 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.8479, allocations: 8 kB / 1.183 GB, free: 1.379 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001562/0.8481, allocations: 148.6 kB / 1.184 GB, free: 1.23 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8481, allocations: 4.062 kB / 1.184 GB, free: 1.227 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003735/0.8485, allocations: 68 kB / 1.184 GB, free: 1.16 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.001078/0.8496, allocations: 1.06 MB / 1.185 GB, free: 64 kB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008474/0.8504, allocations: 434.4 kB / 1.185 GB, free: 15.62 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.8504, allocations: 3.938 kB / 1.185 GB, free: 15.62 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.8506, allocations: 119.9 kB / 1.185 GB, free: 15.5 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.851, allocations: 46.84 kB / 1.185 GB, free: 15.46 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004082/0.8551, allocations: 2.888 MB / 1.188 GB, free: 12.44 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.8556, allocations: 0.7714 MB / 1.189 GB, free: 11.64 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001876/0.8558, allocations: 57.89 kB / 1.189 GB, free: 11.59 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.8559, allocations: 71.41 kB / 1.189 GB, free: 11.52 MB / 0.92 GB Notification: Performance of SimCode: time 5.91e-07/0.8559, allocations: 0 / 1.189 GB, free: 11.52 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.8877, allocations: 5.101 MB / 1.194 GB, free: 6.594 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.936/10.82, allocations: 9.484 kB / 1.194 GB, free: 6.586 MB / 0.92 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches