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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 78.64 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 166.5 kB / 22.46 MB, free: 5.363 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.625/1.625, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.954/2.954, allocations: 389 MB / 0.633 GB, free: 0.9961 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.816e-06/2.816e-06, allocations: 0 / 1 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.67e-05/3.952e-05, allocations: 5.797 kB / 1 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.007585/0.007624, allocations: 3.066 MB / 1.003 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.004569/0.01219, allocations: 1.671 MB / 1.005 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002101/0.0124, allocations: 7.938 kB / 1.005 GB, free: 2.535 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001647/0.01405, allocations: 334.6 kB / 1.005 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0009519/0.015, allocations: 222.8 kB / 1.005 GB, free: 1.988 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008735/0.01588, allocations: 177.8 kB / 1.005 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006698/0.01655, allocations: 326.8 kB / 1.006 GB, free: 1.496 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000519/0.01706, allocations: 173.5 kB / 1.006 GB, free: 1.324 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005266/0.01759, allocations: 191.5 kB / 1.006 GB, free: 1.137 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005496/0.01814, allocations: 155.6 kB / 1.006 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.912e-05/0.01822, allocations: 20 kB / 1.006 GB, free: 0.9648 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006955/0.01891, allocations: 227.3 kB / 1.007 GB, free: 0.7422 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.01912, allocations: 107.7 kB / 1.007 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.01933, allocations: 87.81 kB / 1.007 GB, free: 0.5508 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0009376/0.02027, allocations: 434.7 kB / 1.007 GB, free: 128 kB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.02027, allocations: 0 / 1.007 GB, free: 128 kB / 0.9512 GB Notification: Performance of FrontEnd: time 1.874e-06/0.02027, allocations: 4 kB / 1.007 GB, free: 124 kB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.02029, allocations: 4 kB / 1.007 GB, free: 120 kB / 0.9512 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.001713/0.022, allocations: 493.3 kB / 1.008 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.02205, allocations: 8.031 kB / 1.008 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001422/0.02347, allocations: 92.69 kB / 1.008 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.02402, allocations: 201.3 kB / 1.008 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.02406, allocations: 16.88 kB / 1.008 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.02422, allocations: 32.55 kB / 1.008 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.02526, allocations: 424.8 kB / 1.008 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.02529, allocations: 4.141 kB / 1.008 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.459e-05/0.02534, allocations: 12.12 kB / 1.008 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000168/0.02551, allocations: 32.47 kB / 1.008 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009224/0.02643, allocations: 305.8 kB / 1.009 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002799/0.02923, allocations: 1.027 MB / 1.01 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007574/0.02999, allocations: 218.3 kB / 1.01 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.03028, allocations: 104.8 kB / 1.01 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/0.03044, allocations: 19.92 kB / 1.01 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/0.03048, allocations: 30.56 kB / 1.01 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=18): time 2.254e-06/0.03049, allocations: 0 / 1.01 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.002225/0.03271, allocations: 0.723 MB / 1.011 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.03277, allocations: 51.41 kB / 1.011 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.0331, allocations: 186.7 kB / 1.011 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.03314, allocations: 29.7 kB / 1.011 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.03332, allocations: 168.5 kB / 1.011 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.91e-05/0.03342, allocations: 71.39 kB / 1.011 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.03358, allocations: 53.69 kB / 1.011 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002165/0.0338, allocations: 330.8 kB / 1.012 GB, free: 11.31 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/0.03413, allocations: 111.9 kB / 1.012 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004097/0.03454, allocations: 173.9 kB / 1.012 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007821/0.03532, allocations: 301.7 kB / 1.012 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.03532, allocations: 0 / 1.012 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001405/0.03673, allocations: 417.9 kB / 1.013 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.03675, allocations: 4 kB / 1.013 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.03677, allocations: 8.188 kB / 1.013 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007158/0.03748, allocations: 92.77 kB / 1.013 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/0.03795, allocations: 59.83 kB / 1.013 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003452/0.0414, allocations: 1.745 MB / 1.014 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003675/0.04177, allocations: 15.98 kB / 1.014 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.04181, allocations: 7.984 kB / 1.014 GB, free: 8.238 MB / 0.9669 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.0002749/0.04208, allocations: 157.7 kB / 1.015 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.04218, allocations: 19.91 kB / 1.015 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008865/0.04307, allocations: 299.2 kB / 1.015 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.04308, allocations: 4 kB / 1.015 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.04308, allocations: 0 / 1.015 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.04309, allocations: 3.984 kB / 1.015 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/0.04461, allocations: 0.6069 MB / 1.015 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.04462, allocations: 4.172 kB / 1.015 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005889/0.04521, allocations: 67.95 kB / 1.016 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.04522, allocations: 0 / 1.016 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.357e-05/0.04525, allocations: 8 kB / 1.016 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.04525, allocations: 0 / 1.016 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.04525, allocations: 0 / 1.016 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.04646, allocations: 0.5226 MB / 1.016 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.04662, allocations: 35.88 kB / 1.016 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.04668, allocations: 8 kB / 1.016 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.047, allocations: 11.98 kB / 1.016 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.04706, allocations: 15.97 kB / 1.016 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.04709, allocations: 7.938 kB / 1.016 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000227/0.04732, allocations: 152.7 kB / 1.016 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.71e-07/0.04732, allocations: 0 / 1.016 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0006812/0.048, allocations: 64 kB / 1.016 GB, free: 6.184 MB / 0.9669 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.0002266/0.04822, allocations: 107.2 kB / 1.016 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001214/0.04944, allocations: 406.6 kB / 1.017 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.04944, allocations: 4 kB / 1.017 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.04977, allocations: 111.9 kB / 1.017 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006304/0.0504, allocations: 27.92 kB / 1.017 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.05241, allocations: 0.5745 MB / 1.018 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.05271, allocations: 169 kB / 1.018 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0003103/0.05302, allocations: 53.91 kB / 1.018 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.05315, allocations: 20.5 kB / 1.018 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of SimCode: time 9.02e-07/0.05315, allocations: 0 / 1.018 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of Templates: time 0.01216/0.06531, allocations: 2.764 MB / 1.02 GB, free: 1.926 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.403093792498112]