Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001384/0.001384, allocations: 110.1 kB / 16.41 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.001471/0.00147, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.27/2.27, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 67.89 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013/1.014, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004788/1.019, allocations: 3.083 MB / 1.092 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002732/1.022, allocations: 1.716 MB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/1.022, allocations: 7.781 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001022/1.023, allocations: 351.2 kB / 1.094 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006099/1.024, allocations: 209.8 kB / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005751/1.024, allocations: 179.2 kB / 1.094 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004686/1.025, allocations: 317.7 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004792/1.025, allocations: 233.3 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002329/1.025, allocations: 147.2 kB / 1.095 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00038/1.026, allocations: 157.7 kB / 1.095 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.239e-05/1.026, allocations: 20.91 kB / 1.095 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005464/1.026, allocations: 242.1 kB / 1.095 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001495/1.027, allocations: 101.4 kB / 1.095 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001561/1.027, allocations: 129 kB / 1.095 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007158/1.027, allocations: 414.2 kB / 1.096 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/1.027, allocations: 0.9375 kB / 1.096 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.414e-06/1.027, allocations: 0.7969 kB / 1.096 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.233e-06/1.027, allocations: 0 / 1.096 GB, free: 1.219 MB / 0.8575 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.001048/1.029, allocations: 0.5469 MB / 1.096 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/1.029, allocations: 17.53 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008191/1.029, allocations: 95.5 kB / 1.096 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/1.03, allocations: 258.5 kB / 1.097 GB, free: 488 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/1.03, allocations: 12.75 kB / 1.097 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/1.03, allocations: 34.23 kB / 1.097 GB, free: 468 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007019/1.031, allocations: 372.5 kB / 1.097 GB, free: 280 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/1.031, allocations: 0.6094 kB / 1.097 GB, free: 280 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/1.031, allocations: 10.59 kB / 1.097 GB, free: 272 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/1.031, allocations: 30.92 kB / 1.097 GB, free: 268 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005718/1.031, allocations: 309.4 kB / 1.097 GB, free: 156 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/1.033, allocations: 1.52 MB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004866/1.034, allocations: 235.7 kB / 1.099 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/1.034, allocations: 121.5 kB / 1.099 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001558/1.034, allocations: 86.97 kB / 1.099 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/1.034, allocations: 40.2 kB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/1.034, allocations: 0 / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001433/1.036, allocations: 0.7925 MB / 1.1 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/1.036, allocations: 54.03 kB / 1.1 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/1.036, allocations: 203.7 kB / 1.1 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.381e-05/1.036, allocations: 26.8 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 9.894e-05/1.036, allocations: 162 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.983e-05/1.036, allocations: 69.67 kB / 1.101 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/1.036, allocations: 52.69 kB / 1.101 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001179/1.036, allocations: 336.8 kB / 1.101 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/1.037, allocations: 114.9 kB / 1.101 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/1.037, allocations: 164.3 kB / 1.101 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004339/1.037, allocations: 295.1 kB / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/1.037, allocations: 0 / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008398/1.038, allocations: 423.9 kB / 1.102 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/1.038, allocations: 10.02 kB / 1.102 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/1.038, allocations: 0.9688 kB / 1.102 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004511/1.039, allocations: 100.6 kB / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/1.039, allocations: 56.34 kB / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/1.041, allocations: 1.867 MB / 1.104 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/1.041, allocations: 20.23 kB / 1.104 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/1.041, allocations: 12.31 kB / 1.104 GB, free: 11.23 MB / 0.8731 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.0002047/1.042, allocations: 154.3 kB / 1.104 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.206e-05/1.042, allocations: 20.22 kB / 1.104 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006509/1.042, allocations: 299 kB / 1.104 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/1.042, allocations: 2.688 kB / 1.104 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/1.042, allocations: 0.5 kB / 1.104 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/1.042, allocations: 5.344 kB / 1.104 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/1.043, allocations: 0.7091 MB / 1.105 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/1.043, allocations: 1.25 kB / 1.105 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002981/1.044, allocations: 54.23 kB / 1.105 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/1.044, allocations: 1.859 kB / 1.105 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/1.044, allocations: 11.45 kB / 1.105 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/1.044, allocations: 1.281 kB / 1.105 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.044, allocations: 1.812 kB / 1.105 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006246/1.044, allocations: 0.5146 MB / 1.106 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/1.045, allocations: 122.8 kB / 1.106 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/1.045, allocations: 7.047 kB / 1.106 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/1.045, allocations: 15.39 kB / 1.106 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/1.045, allocations: 10.17 kB / 1.106 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/1.045, allocations: 13.58 kB / 1.106 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001341/1.045, allocations: 142.2 kB / 1.106 GB, free: 9.949 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.81e-07/1.045, allocations: 5.344 kB / 1.106 GB, free: 9.945 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004045/1.045, allocations: 65.28 kB / 1.106 GB, free: 9.938 MB / 0.8731 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.0001622/1.046, allocations: 106.9 kB / 1.106 GB, free: 9.844 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007476/1.046, allocations: 429.9 kB / 1.106 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/1.046, allocations: 4.125 kB / 1.106 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001739/1.046, allocations: 120.5 kB / 1.107 GB, free: 9.582 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/1.047, allocations: 48 kB / 1.107 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/1.048, allocations: 0.65 MB / 1.107 GB, free: 9.148 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/1.049, allocations: 0.7764 MB / 1.108 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.241e-05/1.049, allocations: 25.67 kB / 1.108 GB, free: 8.426 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/1.049, allocations: 0 / 1.108 GB, free: 8.426 MB / 0.8731 GB Notification: Performance of Templates: time 0.007344/1.056, allocations: 3.615 MB / 1.112 GB, free: 8.137 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches