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.006157/0.006157, allocations: 103 kB / 15.73 MB, free: 6.035 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.001417/0.001417, allocations: 190 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.576/2.576, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 60.12 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3728, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005064/0.3779, allocations: 3.095 MB / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002832/0.3808, allocations: 1.718 MB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000204/0.381, allocations: 4 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.3822, allocations: 332.8 kB / 1.213 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0006319/0.3828, allocations: 215.1 kB / 1.213 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005452/0.3833, allocations: 183.5 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004282/0.3838, allocations: 323 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.3842, allocations: 232.7 kB / 1.214 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.3845, allocations: 139.5 kB / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003995/0.3849, allocations: 163.5 kB / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.475e-05/0.385, allocations: 20 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004683/0.3854, allocations: 243.5 kB / 1.214 GB, free: 3 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.3856, allocations: 95.78 kB / 1.214 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.3857, allocations: 131.4 kB / 1.214 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005956/0.3863, allocations: 418.7 kB / 1.215 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3864, allocations: 0 / 1.215 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3864, allocations: 0 / 1.215 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.199e-05/0.3864, allocations: 4 kB / 1.215 GB, free: 2.363 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.001034/0.3874, allocations: 0.5511 MB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3875, allocations: 12.03 kB / 1.215 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007494/0.3882, allocations: 88.55 kB / 1.215 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.3886, allocations: 248 kB / 1.216 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.3886, allocations: 24.8 kB / 1.216 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.3888, allocations: 32.45 kB / 1.216 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005663/0.3893, allocations: 373.1 kB / 1.216 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.3894, allocations: 0 / 1.216 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.3894, allocations: 12 kB / 1.216 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.135e-05/0.3895, allocations: 28.41 kB / 1.216 GB, free: 0.9023 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004606/0.39, allocations: 309.5 kB / 1.216 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.3918, allocations: 1.521 MB / 1.218 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004308/0.3922, allocations: 238.3 kB / 1.218 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.3924, allocations: 112.8 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001396/0.3926, allocations: 85.11 kB / 1.218 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.3926, allocations: 38.55 kB / 1.218 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.3926, allocations: 0 / 1.218 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.001231/0.3938, allocations: 0.7939 MB / 1.219 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.3939, allocations: 59.3 kB / 1.219 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.3941, allocations: 207.1 kB / 1.219 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.3941, allocations: 25.7 kB / 1.219 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.887e-05/0.3942, allocations: 159.8 kB / 1.22 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.439e-05/0.3943, allocations: 63.09 kB / 1.22 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.982e-05/0.3944, allocations: 61.61 kB / 1.22 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3945, allocations: 334.8 kB / 1.22 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.3947, allocations: 111.9 kB / 1.22 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.3949, allocations: 165.9 kB / 1.22 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.3953, allocations: 301.7 kB / 1.221 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3953, allocations: 0 / 1.221 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007224/0.396, allocations: 422.5 kB / 1.221 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.3961, allocations: 4 kB / 1.221 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.3961, allocations: 0 / 1.221 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004047/0.3965, allocations: 104.9 kB / 1.221 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.3967, allocations: 51.91 kB / 1.221 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/0.3986, allocations: 1.88 MB / 1.223 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.3988, allocations: 19.92 kB / 1.223 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.3988, allocations: 11.98 kB / 1.223 GB, free: 9.398 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.000149/0.399, allocations: 156.9 kB / 1.223 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.399, allocations: 19.8 kB / 1.223 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004354/0.3995, allocations: 292.9 kB / 1.223 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3995, allocations: 7.984 kB / 1.223 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.3995, allocations: 0 / 1.223 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3995, allocations: 3.938 kB / 1.223 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008769/0.4004, allocations: 0.703 MB / 1.224 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4004, allocations: 0 / 1.224 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002817/0.4007, allocations: 55.89 kB / 1.224 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.4007, allocations: 4 kB / 1.224 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.4007, allocations: 7.938 kB / 1.224 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4007, allocations: 4 kB / 1.224 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4007, allocations: 0 / 1.224 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005773/0.4013, allocations: 0.5206 MB / 1.225 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.4014, allocations: 116.8 kB / 1.225 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.4015, allocations: 16.03 kB / 1.225 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.4017, allocations: 15.98 kB / 1.225 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.4017, allocations: 7.984 kB / 1.225 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.4017, allocations: 12 kB / 1.225 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001236/0.4019, allocations: 144 kB / 1.225 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of sort global known variables: time 4.31e-07/0.4019, allocations: 4.062 kB / 1.225 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003616/0.4022, allocations: 68 kB / 1.225 GB, free: 7.148 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.0001643/0.4024, allocations: 107.1 kB / 1.225 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007314/0.4031, allocations: 434.9 kB / 1.226 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.4032, allocations: 8 kB / 1.226 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.4033, allocations: 123.8 kB / 1.226 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.4037, allocations: 35.91 kB / 1.226 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.405, allocations: 0.6195 MB / 1.226 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.4054, allocations: 0.7675 MB / 1.227 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001639/0.4056, allocations: 57.89 kB / 1.227 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.411e-05/0.4057, allocations: 23.44 kB / 1.227 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of SimCode: time 3.6e-07/0.4057, allocations: 0 / 1.227 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of Templates: time 0.007449/0.4132, allocations: 2.877 MB / 1.23 GB, free: 2.051 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