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.001721/0.001721, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001964/0.001965, allocations: 187 kB / 17.34 MB, free: 5.762 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.47/1.47, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 461.9 MB / 0.7354 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 63.91 kB / 1.055 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9209/0.9224, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005571/0.928, allocations: 3.082 MB / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003214/0.9313, allocations: 1.714 MB / 1.213 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002533/0.9316, allocations: 8 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.9329, allocations: 337.6 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0006615/0.9336, allocations: 207.1 kB / 1.214 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.9342, allocations: 191.5 kB / 1.214 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004687/0.9347, allocations: 315 kB / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004427/0.9351, allocations: 240.5 kB / 1.214 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.9354, allocations: 139.6 kB / 1.214 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.9358, allocations: 159.5 kB / 1.215 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.884e-05/0.9359, allocations: 20 kB / 1.215 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004803/0.9363, allocations: 239.5 kB / 1.215 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.9365, allocations: 107.7 kB / 1.215 GB, free: 6.93 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.9366, allocations: 119.5 kB / 1.215 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000656/0.9373, allocations: 420.6 kB / 1.215 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.9373, allocations: 3.984 kB / 1.215 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.474e-06/0.9373, allocations: 0 / 1.215 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.9373, allocations: 7.938 kB / 1.215 GB, free: 6.391 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.001127/0.9385, allocations: 0.542 MB / 1.216 GB, free: 5.801 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.9385, allocations: 12.03 kB / 1.216 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007933/0.9393, allocations: 100.5 kB / 1.216 GB, free: 5.691 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/0.9397, allocations: 255.9 kB / 1.216 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.9397, allocations: 24.75 kB / 1.216 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.9398, allocations: 32.45 kB / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000589/0.9404, allocations: 373.1 kB / 1.217 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.9405, allocations: 0 / 1.217 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.9405, allocations: 8 kB / 1.217 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.9406, allocations: 32.41 kB / 1.217 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005004/0.9411, allocations: 309.5 kB / 1.217 GB, free: 4.617 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.943, allocations: 1.518 MB / 1.219 GB, free: 2.945 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004373/0.9435, allocations: 238.4 kB / 1.219 GB, free: 2.703 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.9437, allocations: 112.8 kB / 1.219 GB, free: 2.59 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.9438, allocations: 93.08 kB / 1.219 GB, free: 2.48 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.9438, allocations: 30.56 kB / 1.219 GB, free: 2.441 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=18): time 1.783e-06/0.9439, allocations: 4 kB / 1.219 GB, free: 2.438 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.001323/0.9452, allocations: 0.7861 MB / 1.22 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.9452, allocations: 59.34 kB / 1.22 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.9454, allocations: 203 kB / 1.22 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.9455, allocations: 29.7 kB / 1.22 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.684e-05/0.9456, allocations: 159.9 kB / 1.22 GB, free: 1.129 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.078e-05/0.9457, allocations: 71 kB / 1.22 GB, free: 1.059 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.9458, allocations: 61.59 kB / 1.22 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.9459, allocations: 330.8 kB / 1.221 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.9461, allocations: 107.9 kB / 1.221 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.9463, allocations: 165.9 kB / 1.221 GB, free: 380 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003834/0.9467, allocations: 298.7 kB / 1.221 GB, free: 60 kB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.9467, allocations: 4 kB / 1.221 GB, free: 56 kB / 0.9356 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007743/0.9475, allocations: 425.6 kB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.9475, allocations: 4 kB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.9475, allocations: 4 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004199/0.9479, allocations: 96.89 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.9482, allocations: 47.95 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.9502, allocations: 1.883 MB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.9504, allocations: 23.91 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.9504, allocations: 8 kB / 1.224 GB, free: 13.43 MB / 0.9512 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.0001632/0.9506, allocations: 153.9 kB / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.229e-05/0.9507, allocations: 19.81 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004867/0.9511, allocations: 297.7 kB / 1.224 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.9512, allocations: 0 / 1.224 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.9512, allocations: 0 / 1.224 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.9512, allocations: 3.938 kB / 1.224 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008774/0.9521, allocations: 0.7048 MB / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.9521, allocations: 0 / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.9524, allocations: 59.89 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.9524, allocations: 3.938 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.9524, allocations: 11.94 kB / 1.225 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.9524, allocations: 0 / 1.225 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.9524, allocations: 3.984 kB / 1.225 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006473/0.9531, allocations: 0.5125 MB / 1.225 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.9532, allocations: 124.8 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.9533, allocations: 4 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.9534, allocations: 16.05 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.9535, allocations: 15.98 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.9535, allocations: 4 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001825/0.9537, allocations: 148.1 kB / 1.226 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.9537, allocations: 4 kB / 1.226 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003676/0.9541, allocations: 64 kB / 1.226 GB, free: 11.18 MB / 0.9512 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.0002185/0.9543, allocations: 111.2 kB / 1.226 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008429/0.9552, allocations: 426.6 kB / 1.226 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.9552, allocations: 0 / 1.226 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.9554, allocations: 123.8 kB / 1.226 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.9558, allocations: 50.42 kB / 1.226 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.9572, allocations: 0.6602 MB / 1.227 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.9577, allocations: 0.7753 MB / 1.228 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.676e-05/0.9578, allocations: 23.42 kB / 1.228 GB, free: 8.945 MB / 0.9512 GB Notification: Performance of SimCode: time 3.21e-07/0.9578, allocations: 0 / 1.228 GB, free: 8.945 MB / 0.9512 GB Notification: Performance of Templates: time 0.007312/0.9651, allocations: 3.618 MB / 1.231 GB, free: 5.328 MB / 0.9512 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/jenkins1/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