Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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_latest_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_latest_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.006758/0.006758, allocations: 100.7 kB / 15.73 MB, free: 6.477 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.001314/0.001314, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.752/2.752, allocations: 461.8 MB / 0.7347 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 63.89 kB / 1.054 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3717, allocations: 157.4 MB / 1.208 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.007246/0.379, allocations: 3.092 MB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004173/0.3832, allocations: 1.722 MB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002782/0.3835, allocations: 8 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.3851, allocations: 329 kB / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000946/0.386, allocations: 219.1 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007658/0.3868, allocations: 179.5 kB / 1.213 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007155/0.3875, allocations: 323 kB / 1.213 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006389/0.3882, allocations: 236.7 kB / 1.214 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003727/0.3886, allocations: 139.5 kB / 1.214 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005431/0.3892, allocations: 163.4 kB / 1.214 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.854e-05/0.3893, allocations: 20 kB / 1.214 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006967/0.39, allocations: 239.5 kB / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.3902, allocations: 99.77 kB / 1.214 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002773/0.3905, allocations: 123.4 kB / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.3915, allocations: 426.7 kB / 1.215 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3916, allocations: 0 / 1.215 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3916, allocations: 0 / 1.215 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.27e-05/0.3916, allocations: 8 kB / 1.215 GB, free: 2.438 MB / 0.9669 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.001288/0.3929, allocations: 0.538 MB / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3929, allocations: 16.02 kB / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008739/0.3938, allocations: 92.55 kB / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/0.3942, allocations: 248 kB / 1.216 GB, free: 1.465 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.3943, allocations: 20.81 kB / 1.216 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.3944, allocations: 32.41 kB / 1.216 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00061/0.395, allocations: 373.2 kB / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.3951, allocations: 0 / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.3951, allocations: 11.98 kB / 1.216 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.604e-05/0.3952, allocations: 28.42 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004796/0.3957, allocations: 313.4 kB / 1.216 GB, free: 0.6797 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.3976, allocations: 1.518 MB / 1.218 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.3981, allocations: 234.3 kB / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.3982, allocations: 116.8 kB / 1.218 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.3984, allocations: 85.09 kB / 1.218 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.3984, allocations: 34.56 kB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.3984, allocations: 4 kB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.001263/0.3997, allocations: 0.7977 MB / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.3998, allocations: 59.36 kB / 1.219 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.4, allocations: 195.1 kB / 1.219 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.4, allocations: 33.7 kB / 1.219 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.438e-05/0.4001, allocations: 155.8 kB / 1.22 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.4002, allocations: 75.08 kB / 1.22 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.4003, allocations: 57.61 kB / 1.22 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4004, allocations: 330.8 kB / 1.22 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.4006, allocations: 111.9 kB / 1.22 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.4008, allocations: 169.9 kB / 1.22 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.4012, allocations: 300 kB / 1.221 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4012, allocations: 0 / 1.221 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007466/0.402, allocations: 422.6 kB / 1.221 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.402, allocations: 9.812 kB / 1.221 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.402, allocations: 4 kB / 1.221 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003989/0.4024, allocations: 100.9 kB / 1.221 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.4027, allocations: 51.91 kB / 1.221 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/0.4046, allocations: 1.876 MB / 1.223 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.4049, allocations: 19.92 kB / 1.223 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.4049, allocations: 12 kB / 1.223 GB, free: 9.484 MB / 0.9825 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.0001535/0.4051, allocations: 161.8 kB / 1.223 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.953e-05/0.4051, allocations: 15.81 kB / 1.223 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004791/0.4056, allocations: 295.3 kB / 1.223 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.4056, allocations: 0 / 1.223 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.4056, allocations: 0 / 1.223 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.4056, allocations: 7.922 kB / 1.223 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008967/0.4065, allocations: 0.703 MB / 1.224 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4065, allocations: 0 / 1.224 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002856/0.4068, allocations: 55.95 kB / 1.224 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.4068, allocations: 3.938 kB / 1.224 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.28e-05/0.4069, allocations: 11.94 kB / 1.224 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.4069, allocations: 4.125 kB / 1.224 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4069, allocations: 0 / 1.224 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005971/0.4075, allocations: 0.5099 MB / 1.225 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.4076, allocations: 124.8 kB / 1.225 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.4077, allocations: 4 kB / 1.225 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.4078, allocations: 11.98 kB / 1.225 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.4079, allocations: 23.91 kB / 1.225 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.4079, allocations: 4 kB / 1.225 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001367/0.408, allocations: 148.1 kB / 1.225 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.3e-07/0.408, allocations: 4 kB / 1.225 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003518/0.4084, allocations: 64 kB / 1.225 GB, free: 7.234 MB / 0.9825 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.0001519/0.4086, allocations: 107.2 kB / 1.225 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007534/0.4093, allocations: 444.2 kB / 1.226 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4093, allocations: 0 / 1.226 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.4095, allocations: 125.2 kB / 1.226 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.4099, allocations: 37.8 kB / 1.226 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.4111, allocations: 0.6172 MB / 1.226 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.4115, allocations: 0.7714 MB / 1.227 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001615/0.4117, allocations: 61.89 kB / 1.227 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.694e-05/0.4117, allocations: 23.44 kB / 1.227 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of SimCode: time 3.51e-07/0.4117, allocations: 0 / 1.227 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of Templates: time 0.006374/0.4181, allocations: 2.83 MB / 1.23 GB, free: 2.18 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches