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.001673/0.001673, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002526/0.002526, allocations: 194.7 kB / 16.53 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.462/1.462, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.781/2.781, allocations: 437 MB / 0.7103 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001497, allocations: 67.89 kB / 0.8692 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8352/0.8367, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005792/0.8425, allocations: 3.088 MB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00381/0.8464, allocations: 1.722 MB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.8467, allocations: 4 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.8479, allocations: 330.7 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005821/0.8485, allocations: 211.1 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.849, allocations: 175.5 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.8494, allocations: 323 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000427/0.8499, allocations: 246.7 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.85, allocations: 131.5 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.8504, allocations: 159.5 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.134e-05/0.8504, allocations: 24 kB / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004928/0.8509, allocations: 251.5 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.8511, allocations: 103.8 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.8512, allocations: 115.5 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000538/0.8518, allocations: 422.7 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.8518, allocations: 0 / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8518, allocations: 0 / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.8518, allocations: 0 / 1.024 GB, free: 11.23 MB / 0.7794 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.001063/0.8529, allocations: 0.5459 MB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.8529, allocations: 8.031 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000757/0.8537, allocations: 92.55 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.854, allocations: 263.8 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.854, allocations: 16.81 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.804e-05/0.8541, allocations: 24.5 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005646/0.8547, allocations: 373.2 kB / 1.026 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.8547, allocations: 0 / 1.026 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.8548, allocations: 15.98 kB / 1.026 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.8549, allocations: 32.34 kB / 1.026 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004753/0.8554, allocations: 305.5 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.8572, allocations: 1.529 MB / 1.027 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.8576, allocations: 234.3 kB / 1.028 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.8578, allocations: 112.8 kB / 1.028 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.858, allocations: 89.09 kB / 1.028 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.858, allocations: 38.56 kB / 1.028 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.162e-06/0.858, allocations: 0 / 1.028 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001312/0.8593, allocations: 0.7901 MB / 1.029 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.8594, allocations: 55.39 kB / 1.029 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.8596, allocations: 194.6 kB / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.8596, allocations: 29.7 kB / 1.029 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.116e-05/0.8597, allocations: 159.8 kB / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.8598, allocations: 74.98 kB / 1.029 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.36e-05/0.8599, allocations: 61.69 kB / 1.029 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.86, allocations: 326.8 kB / 1.03 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.8602, allocations: 111.9 kB / 1.03 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.8604, allocations: 174.9 kB / 1.03 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.8608, allocations: 293.8 kB / 1.03 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.8608, allocations: 4 kB / 1.03 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007632/0.8616, allocations: 417.8 kB / 1.031 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.8617, allocations: 4 kB / 1.031 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.8617, allocations: 4 kB / 1.031 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004479/0.8621, allocations: 96.95 kB / 1.031 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.8624, allocations: 55.89 kB / 1.031 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.8643, allocations: 1.875 MB / 1.032 GB, free: 2.305 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.8646, allocations: 31.95 kB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.8646, allocations: 4 kB / 1.033 GB, free: 2.27 MB / 0.7794 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.0001647/0.8648, allocations: 157.8 kB / 1.033 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.8648, allocations: 15.81 kB / 1.033 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004739/0.8653, allocations: 304.9 kB / 1.033 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.8653, allocations: 11.94 kB / 1.033 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.8653, allocations: 0 / 1.033 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.8654, allocations: 3.938 kB / 1.033 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008454/0.8662, allocations: 0.7001 MB / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.8662, allocations: 192 / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.8665, allocations: 59.89 kB / 1.034 GB, free: 0.957 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.8665, allocations: 4 kB / 1.034 GB, free: 0.9531 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.8666, allocations: 15.88 kB / 1.034 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.8666, allocations: 4.062 kB / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.8666, allocations: 3.984 kB / 1.034 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.8671, allocations: 0.5068 MB / 1.034 GB, free: 412 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.8673, allocations: 120.9 kB / 1.034 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.8673, allocations: 4 kB / 1.034 GB, free: 268 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.8675, allocations: 20.05 kB / 1.034 GB, free: 248 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.614e-05/0.8675, allocations: 11.92 kB / 1.034 GB, free: 236 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.8675, allocations: 8 kB / 1.034 GB, free: 228 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001304/0.8677, allocations: 148 kB / 1.035 GB, free: 76 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8677, allocations: 0 / 1.035 GB, free: 76 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000349/0.868, allocations: 64 kB / 1.035 GB, free: 12 kB / 0.7794 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.0001683/0.8682, allocations: 111.2 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007389/0.869, allocations: 449.7 kB / 1.035 GB, free: 15.45 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.869, allocations: 0 / 1.035 GB, free: 15.45 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.8692, allocations: 123.9 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.8696, allocations: 38.28 kB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.8708, allocations: 0.6361 MB / 1.036 GB, free: 14.61 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.8711, allocations: 0.7713 MB / 1.037 GB, free: 13.82 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001696/0.8713, allocations: 57.91 kB / 1.037 GB, free: 13.76 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.275e-05/0.8714, allocations: 23.44 kB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of SimCode: time 4.51e-07/0.8714, allocations: 0 / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of Templates: time 0.006236/0.8776, allocations: 2.79 MB / 1.039 GB, free: 10.96 MB / 0.795 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