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.001577/0.001577, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001681/0.001681, allocations: 155.8 kB / 23.01 MB, free: 4.602 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.454/1.454, allocations: 177.2 MB / 203.4 MB, free: 8.949 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.935/2.935, allocations: 394.2 MB / 0.6386 GB, free: 11.91 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 67.89 kB / 1.009 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8575/0.8596, allocations: 181.8 MB / 1.187 GB, free: 16.21 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004169/0.8638, allocations: 3.1 MB / 1.19 GB, free: 14.22 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.002397/0.8662, allocations: 1.691 MB / 1.191 GB, free: 13.15 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.822e-05/0.8663, allocations: 3.5 kB / 1.191 GB, free: 13.15 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0009546/0.8672, allocations: 330.9 kB / 1.192 GB, free: 12.97 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0003979/0.8676, allocations: 222.3 kB / 1.192 GB, free: 12.85 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004037/0.868, allocations: 178.1 kB / 1.192 GB, free: 12.77 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.8684, allocations: 317.2 kB / 1.192 GB, free: 12.63 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003102/0.8687, allocations: 173.9 kB / 1.192 GB, free: 12.55 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.8689, allocations: 148 kB / 1.193 GB, free: 12.49 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002997/0.8692, allocations: 156.6 kB / 1.193 GB, free: 12.44 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.8692, allocations: 25.25 kB / 1.193 GB, free: 12.43 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003704/0.8696, allocations: 220.9 kB / 1.193 GB, free: 12.37 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.8697, allocations: 101.3 kB / 1.193 GB, free: 12.33 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.8698, allocations: 113.2 kB / 1.193 GB, free: 12.27 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0005378/0.8704, allocations: 423 kB / 1.194 GB, free: 12.14 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.8704, allocations: 0 / 1.194 GB, free: 12.14 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8704, allocations: 1 kB / 1.194 GB, free: 12.14 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.8704, allocations: 0 / 1.194 GB, free: 12.14 MB / 1.076 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.0008205/0.8712, allocations: 491.1 kB / 1.194 GB, free: 11.75 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.8713, allocations: 13.61 kB / 1.194 GB, free: 11.75 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007563/0.872, allocations: 97.41 kB / 1.194 GB, free: 11.73 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.8723, allocations: 197.2 kB / 1.194 GB, free: 11.56 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.8723, allocations: 16.95 kB / 1.194 GB, free: 11.55 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.911e-05/0.8724, allocations: 25.94 kB / 1.194 GB, free: 11.54 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005623/0.873, allocations: 429.5 kB / 1.195 GB, free: 11.3 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.873, allocations: 5.891 kB / 1.195 GB, free: 11.29 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.873, allocations: 9.906 kB / 1.195 GB, free: 11.29 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.907e-05/0.8731, allocations: 30.5 kB / 1.195 GB, free: 11.28 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004726/0.8736, allocations: 305 kB / 1.195 GB, free: 11.18 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.875, allocations: 1.037 MB / 1.196 GB, free: 10.44 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.8754, allocations: 213.5 kB / 1.196 GB, free: 10.35 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.8756, allocations: 106.5 kB / 1.196 GB, free: 10.31 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 9.854e-05/0.8757, allocations: 13.64 kB / 1.196 GB, free: 10.3 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.8757, allocations: 41.2 kB / 1.196 GB, free: 10.26 MB / 1.076 GB Notification: Performance of pre-optimization done (n=18): time 1.333e-06/0.8757, allocations: 0 / 1.196 GB, free: 10.26 MB / 1.076 GB Notification: Performance of matching and sorting (n=19): time 0.001112/0.8768, allocations: 0.7126 MB / 1.197 GB, free: 9.875 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.89e-05/0.8768, allocations: 54.98 kB / 1.197 GB, free: 9.812 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.877, allocations: 189.2 kB / 1.197 GB, free: 9.68 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.877, allocations: 34.8 kB / 1.197 GB, free: 9.641 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 7.67e-05/0.8771, allocations: 164.7 kB / 1.198 GB, free: 9.5 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.8771, allocations: 74.16 kB / 1.198 GB, free: 9.441 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-05/0.8772, allocations: 57.23 kB / 1.198 GB, free: 9.406 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.997e-05/0.8773, allocations: 332.1 kB / 1.198 GB, free: 9.082 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.8775, allocations: 110.2 kB / 1.198 GB, free: 9.047 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.8777, allocations: 167.2 kB / 1.198 GB, free: 8.949 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.878, allocations: 294.8 kB / 1.199 GB, free: 8.789 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.878, allocations: 1.656 kB / 1.199 GB, free: 8.789 MB / 1.076 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00074/0.8788, allocations: 420.3 kB / 1.199 GB, free: 8.609 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.8788, allocations: 9.719 kB / 1.199 GB, free: 8.605 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.8788, allocations: 6.125 kB / 1.199 GB, free: 8.602 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004161/0.8792, allocations: 99.89 kB / 1.199 GB, free: 8.574 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.8795, allocations: 55.92 kB / 1.199 GB, free: 8.566 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.881, allocations: 1.743 MB / 1.201 GB, free: 7.148 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.8812, allocations: 16.58 kB / 1.201 GB, free: 7.145 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.8813, allocations: 8.969 kB / 1.201 GB, free: 7.145 MB / 1.076 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.000121/0.8814, allocations: 159 kB / 1.201 GB, free: 7.004 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.8814, allocations: 16.7 kB / 1.201 GB, free: 6.996 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000464/0.8819, allocations: 294.8 kB / 1.201 GB, free: 6.859 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.8819, allocations: 6.594 kB / 1.201 GB, free: 6.855 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.8819, allocations: 2 kB / 1.201 GB, free: 6.855 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.8819, allocations: 0.7031 kB / 1.201 GB, free: 6.855 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007965/0.8827, allocations: 0.6193 MB / 1.202 GB, free: 6.461 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.8827, allocations: 1.062 kB / 1.202 GB, free: 6.461 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000309/0.883, allocations: 53.8 kB / 1.202 GB, free: 6.461 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.883, allocations: 1.469 kB / 1.202 GB, free: 6.461 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.883, allocations: 7.75 kB / 1.202 GB, free: 6.457 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.883, allocations: 2.078 kB / 1.202 GB, free: 6.457 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.8831, allocations: 1.406 kB / 1.202 GB, free: 6.457 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005734/0.8836, allocations: 0.5221 MB / 1.203 GB, free: 6.16 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 9.924e-05/0.8837, allocations: 37.25 kB / 1.203 GB, free: 6.145 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.8838, allocations: 8.484 kB / 1.203 GB, free: 6.141 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/0.8839, allocations: 13.53 kB / 1.203 GB, free: 6.137 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.884, allocations: 16.61 kB / 1.203 GB, free: 6.133 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.884, allocations: 9.188 kB / 1.203 GB, free: 6.129 MB / 1.076 GB Notification: Performance of sorting global known variables: time 9.954e-05/0.8841, allocations: 143 kB / 1.203 GB, free: 6.031 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8841, allocations: 0 / 1.203 GB, free: 6.031 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000359/0.8845, allocations: 60.84 kB / 1.203 GB, free: 6.027 MB / 1.076 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.0001161/0.8846, allocations: 115.5 kB / 1.203 GB, free: 5.922 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0006443/0.8852, allocations: 407.5 kB / 1.203 GB, free: 5.715 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.8852, allocations: 0 / 1.203 GB, free: 5.715 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.8854, allocations: 108.4 kB / 1.203 GB, free: 5.684 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.8858, allocations: 40.69 kB / 1.203 GB, free: 5.664 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.8868, allocations: 0.6338 MB / 1.204 GB, free: 5.277 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000155/0.887, allocations: 167.9 kB / 1.204 GB, free: 5.188 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.000166/0.8871, allocations: 53.69 kB / 1.204 GB, free: 5.184 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.492e-05/0.8872, allocations: 20.47 kB / 1.204 GB, free: 5.176 MB / 1.076 GB Notification: Performance of SimCode: time 3.31e-07/0.8872, allocations: 0 / 1.204 GB, free: 5.176 MB / 1.076 GB Notification: Performance of Templates: time 0.006734/0.8939, allocations: 2.758 MB / 1.207 GB, free: 4.863 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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/jenkins1/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.611728930962272]