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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006955/0.006955, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001562/0.001562, allocations: 197.1 kB / 16.68 MB, free: 5.969 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.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.944/2.944, allocations: 437 MB / 0.7105 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001847, allocations: 59.91 kB / 1.019 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3886, allocations: 151.6 MB / 1.167 GB, free: 6.816 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.007103/0.3957, allocations: 3.084 MB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003658/0.3995, allocations: 1.706 MB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002203/0.3997, allocations: 7.938 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.4009, allocations: 342.7 kB / 1.172 GB, free: 1.652 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000668/0.4016, allocations: 211.1 kB / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000616/0.4022, allocations: 186.9 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004153/0.4026, allocations: 323 kB / 1.172 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000451/0.4031, allocations: 248.6 kB / 1.173 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.4033, allocations: 139.5 kB / 1.173 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003175/0.4037, allocations: 159.5 kB / 1.173 GB, free: 420 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.792e-05/0.4037, allocations: 20 kB / 1.173 GB, free: 400 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.4041, allocations: 239.5 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.4042, allocations: 99.72 kB / 1.173 GB, free: 60 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.4044, allocations: 123.5 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005231/0.4049, allocations: 422.5 kB / 1.174 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.4049, allocations: 0 / 1.174 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.542e-06/0.4049, allocations: 0 / 1.174 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.4049, allocations: 4 kB / 1.174 GB, free: 15.52 MB / 0.9356 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.001065/0.406, allocations: 0.5569 MB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.4061, allocations: 8.031 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007402/0.4068, allocations: 100.6 kB / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003689/0.4072, allocations: 248 kB / 1.175 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.4072, allocations: 20.81 kB / 1.175 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.4073, allocations: 28.53 kB / 1.175 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/0.4079, allocations: 377.1 kB / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.4079, allocations: 0 / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.4079, allocations: 8 kB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.32e-05/0.408, allocations: 28.42 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004536/0.4085, allocations: 309.5 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.4104, allocations: 1.545 MB / 1.177 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/0.4109, allocations: 226.4 kB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.411, allocations: 112.8 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001709/0.4112, allocations: 93.03 kB / 1.177 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.4113, allocations: 30.56 kB / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.4113, allocations: 4 kB / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.001287/0.4126, allocations: 0.7991 MB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.4126, allocations: 55.36 kB / 1.178 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.4128, allocations: 186.7 kB / 1.178 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.4129, allocations: 33.64 kB / 1.178 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.413, allocations: 164.2 kB / 1.178 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.677e-05/0.413, allocations: 71.38 kB / 1.179 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.4131, allocations: 57.7 kB / 1.179 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.4133, allocations: 334.8 kB / 1.179 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.4135, allocations: 111.9 kB / 1.179 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.4137, allocations: 167 kB / 1.179 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.414, allocations: 295.8 kB / 1.179 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.4141, allocations: 0 / 1.179 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007244/0.4148, allocations: 423.5 kB / 1.18 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4148, allocations: 10.19 kB / 1.18 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.4148, allocations: 0 / 1.18 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000405/0.4152, allocations: 104.9 kB / 1.18 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.4155, allocations: 51.91 kB / 1.18 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/0.4174, allocations: 1.879 MB / 1.182 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.4176, allocations: 15.92 kB / 1.182 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.4177, allocations: 11.98 kB / 1.182 GB, free: 6.543 MB / 0.9356 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.0001655/0.4178, allocations: 165.8 kB / 1.182 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.594e-05/0.4179, allocations: 15.91 kB / 1.182 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004812/0.4184, allocations: 295.4 kB / 1.182 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.4184, allocations: 4 kB / 1.182 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.4184, allocations: 0 / 1.182 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.4184, allocations: 7.922 kB / 1.182 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008814/0.4193, allocations: 0.7106 MB / 1.183 GB, free: 5.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.4193, allocations: 0 / 1.183 GB, free: 5.277 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.4196, allocations: 55.95 kB / 1.183 GB, free: 5.223 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.4196, allocations: 4 kB / 1.183 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.4196, allocations: 3.938 kB / 1.183 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4196, allocations: 4 kB / 1.183 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4197, allocations: 0 / 1.183 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005951/0.4203, allocations: 0.52 MB / 1.184 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.4204, allocations: 121 kB / 1.184 GB, free: 4.535 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.4204, allocations: 4 kB / 1.184 GB, free: 4.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.4206, allocations: 19.97 kB / 1.184 GB, free: 4.512 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.4206, allocations: 7.984 kB / 1.184 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.4206, allocations: 4 kB / 1.184 GB, free: 4.5 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001222/0.4208, allocations: 148 kB / 1.184 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4208, allocations: 4.062 kB / 1.184 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003534/0.4211, allocations: 68 kB / 1.184 GB, free: 4.281 MB / 0.9356 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.0001702/0.4213, allocations: 107.2 kB / 1.184 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007259/0.4221, allocations: 442.4 kB / 1.184 GB, free: 3.719 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4221, allocations: 0 / 1.184 GB, free: 3.719 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.4222, allocations: 119.8 kB / 1.185 GB, free: 3.602 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.4226, allocations: 44.67 kB / 1.185 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.4238, allocations: 0.6229 MB / 1.185 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.4241, allocations: 0.7714 MB / 1.186 GB, free: 2.109 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001469/0.4243, allocations: 57.91 kB / 1.186 GB, free: 2.055 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.032e-05/0.4243, allocations: 23.44 kB / 1.186 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of SimCode: time 2e-07/0.4243, allocations: 0 / 1.186 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of Templates: time 0.006284/0.4306, allocations: 2.831 MB / 1.189 GB, free: 15.21 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/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