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.001459/0.001459, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001661/0.001661, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 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.499/1.499, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 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 3.216/3.216, allocations: 429.6 MB / 0.673 GB, free: 3.875 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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 1.443e-06/1.443e-06, allocations: 0 / 0.8776 GB, free: 5.355 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.58e-05/2.724e-05, allocations: 6.25 kB / 0.8776 GB, free: 5.348 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005576/0.005603, allocations: 3.072 MB / 0.8806 GB, free: 2.297 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.003512/0.009115, allocations: 1.682 MB / 0.8822 GB, free: 0.6133 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.0093, allocations: 4 kB / 0.8822 GB, free: 0.6094 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.01052, allocations: 330.6 kB / 0.8825 GB, free: 292 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.000618/0.01114, allocations: 216.6 kB / 0.8828 GB, free: 76 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006069/0.01175, allocations: 184.4 kB / 0.8829 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0005398/0.01229, allocations: 330.8 kB / 0.8832 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004278/0.01272, allocations: 165 kB / 0.8834 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004376/0.01315, allocations: 192.6 kB / 0.8836 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004396/0.01359, allocations: 159.6 kB / 0.8837 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.01365, allocations: 21.06 kB / 0.8838 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004834/0.01414, allocations: 219.4 kB / 0.884 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.01432, allocations: 112.8 kB / 0.8841 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.01447, allocations: 79.83 kB / 0.8842 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0007428/0.01522, allocations: 446.5 kB / 0.8846 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.01522, allocations: 4.953 kB / 0.8846 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.002e-06/0.01523, allocations: 0 / 0.8846 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.009e-05/0.01525, allocations: 0 / 0.8846 GB, free: 14.2 MB / 0.8073 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.00117/0.01642, allocations: 491 kB / 0.8851 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.01645, allocations: 8.031 kB / 0.8851 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000909/0.01736, allocations: 149 kB / 0.8852 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.01775, allocations: 199.2 kB / 0.8854 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.01779, allocations: 16.86 kB / 0.8854 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.0179, allocations: 32.55 kB / 0.8854 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007479/0.01865, allocations: 422.3 kB / 0.8858 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.01867, allocations: 8.125 kB / 0.8858 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.01871, allocations: 8.125 kB / 0.8859 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.01883, allocations: 32.47 kB / 0.8859 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005892/0.01942, allocations: 306.8 kB / 0.8862 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.02138, allocations: 1.03 MB / 0.8872 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.02188, allocations: 214.4 kB / 0.8874 GB, free: 11.19 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.02208, allocations: 100.8 kB / 0.8875 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001232/0.0222, allocations: 14.47 kB / 0.8875 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.02224, allocations: 34.56 kB / 0.8875 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=18): time 1.452e-06/0.02224, allocations: 3.938 kB / 0.8875 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19): time 0.001499/0.02374, allocations: 0.7332 MB / 0.8883 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.02378, allocations: 51.41 kB / 0.8883 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.02403, allocations: 190.5 kB / 0.8885 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.02406, allocations: 29.7 kB / 0.8885 GB, free: 9.973 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.02421, allocations: 168.5 kB / 0.8887 GB, free: 9.805 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.575e-05/0.02429, allocations: 63.44 kB / 0.8887 GB, free: 9.742 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.02441, allocations: 61.64 kB / 0.8888 GB, free: 9.676 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001837/0.02459, allocations: 327.5 kB / 0.8891 GB, free: 9.348 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.0248, allocations: 111.9 kB / 0.8892 GB, free: 9.238 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002741/0.02508, allocations: 171.9 kB / 0.8894 GB, free: 9.051 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004897/0.02557, allocations: 303.5 kB / 0.8897 GB, free: 8.734 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.02557, allocations: 0 / 0.8897 GB, free: 8.734 MB / 0.8073 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009341/0.0265, allocations: 430.5 kB / 0.8901 GB, free: 8.305 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.02652, allocations: 8.188 kB / 0.8901 GB, free: 8.297 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.02653, allocations: 4 kB / 0.8901 GB, free: 8.293 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008306/0.02736, allocations: 136.7 kB / 0.8902 GB, free: 8.156 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.02763, allocations: 51.84 kB / 0.8903 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/0.03009, allocations: 1.749 MB / 0.892 GB, free: 6.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.03034, allocations: 16.02 kB / 0.892 GB, free: 6.234 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.658e-05/0.03037, allocations: 8 kB / 0.892 GB, free: 6.227 MB / 0.8073 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.0002012/0.03057, allocations: 161.7 kB / 0.8922 GB, free: 6.059 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.449e-05/0.03065, allocations: 23.84 kB / 0.8922 GB, free: 6.035 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006026/0.03125, allocations: 305.4 kB / 0.8925 GB, free: 5.73 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.03125, allocations: 0 / 0.8925 GB, free: 5.73 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.03125, allocations: 0 / 0.8925 GB, free: 5.73 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.03125, allocations: 0 / 0.8925 GB, free: 5.73 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.03231, allocations: 0.605 MB / 0.8931 GB, free: 5.082 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.03231, allocations: 0 / 0.8931 GB, free: 5.082 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/0.03266, allocations: 63.89 kB / 0.8931 GB, free: 5.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-06/0.03266, allocations: 0 / 0.8931 GB, free: 5.02 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.03269, allocations: 4 kB / 0.8931 GB, free: 5.016 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.03269, allocations: 3.938 kB / 0.8931 GB, free: 5.012 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.0327, allocations: 12.05 kB / 0.8931 GB, free: 5 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007917/0.03349, allocations: 0.5164 MB / 0.8936 GB, free: 4.461 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.0336, allocations: 39.92 kB / 0.8937 GB, free: 4.422 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.757e-05/0.03363, allocations: 7.984 kB / 0.8937 GB, free: 4.414 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.03383, allocations: 15.98 kB / 0.8937 GB, free: 4.398 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.03388, allocations: 7.984 kB / 0.8937 GB, free: 4.391 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.0339, allocations: 7.938 kB / 0.8937 GB, free: 4.383 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0001611/0.03406, allocations: 144.7 kB / 0.8939 GB, free: 4.242 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.03406, allocations: 0 / 0.8939 GB, free: 4.242 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0004136/0.03448, allocations: 68 kB / 0.8939 GB, free: 4.176 MB / 0.8073 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.0002014/0.03468, allocations: 115.2 kB / 0.894 GB, free: 4.051 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0008458/0.03552, allocations: 400.4 kB / 0.8944 GB, free: 3.648 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.03553, allocations: 0 / 0.8944 GB, free: 3.648 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.03572, allocations: 118.3 kB / 0.8945 GB, free: 3.535 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.03616, allocations: 53.77 kB / 0.8946 GB, free: 3.484 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.03754, allocations: 0.5767 MB / 0.8951 GB, free: 2.875 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.03775, allocations: 169 kB / 0.8953 GB, free: 2.691 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0001869/0.03793, allocations: 53.91 kB / 0.8954 GB, free: 2.641 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.323e-05/0.03802, allocations: 20.5 kB / 0.8954 GB, free: 2.621 MB / 0.8073 GB Notification: Performance of SimCode: time 7.41e-07/0.03802, allocations: 0 / 0.8954 GB, free: 2.621 MB / 0.8073 GB Notification: Performance of Templates: time 0.007541/0.04556, allocations: 2.779 MB / 0.8981 GB, free: 15.88 MB / 0.823 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.22757372702472]