Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00139/0.00139, allocations: 109.1 kB / 19.71 MB, free: 2.145 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.001538/0.001538, allocations: 206.5 kB / 23 MB, free: 4.977 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.498/1.498, allocations: 230.6 MB / 256.8 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.188/3.188, allocations: 0.49 GB / 0.7959 GB, free: 35.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.001982/0.001982, allocations: 71.34 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3777/0.3797, allocations: 176.1 MB / 1.327 GB, free: 1.051 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005676/0.3854, allocations: 3.087 MB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003635/0.389, allocations: 1.695 MB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003003/0.3893, allocations: 7.938 kB / 1.332 GB, free: 12.24 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.3907, allocations: 326.7 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0007382/0.3914, allocations: 223.1 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.3921, allocations: 183.5 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006139/0.3927, allocations: 311 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005012/0.3932, allocations: 173.5 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004238/0.3936, allocations: 147.6 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.3941, allocations: 171.4 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/0.3942, allocations: 24 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000529/0.3947, allocations: 223.5 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.3949, allocations: 107.7 kB / 1.334 GB, free: 10.38 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.3951, allocations: 99.53 kB / 1.334 GB, free: 10.29 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007373/0.3958, allocations: 430.5 kB / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3958, allocations: 0 / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3958, allocations: 0 / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.3958, allocations: 0 / 1.334 GB, free: 9.863 MB / 1.029 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.001109/0.3969, allocations: 489.3 kB / 1.335 GB, free: 9.355 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.397, allocations: 12.03 kB / 1.335 GB, free: 9.344 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007952/0.3978, allocations: 96.62 kB / 1.335 GB, free: 9.25 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.3982, allocations: 198.1 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3982, allocations: 20.8 kB / 1.335 GB, free: 9.012 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.3983, allocations: 24.52 kB / 1.335 GB, free: 8.988 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007032/0.399, allocations: 432.1 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.3991, allocations: 0 / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.3991, allocations: 12 kB / 1.335 GB, free: 8.516 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/0.3992, allocations: 36.41 kB / 1.335 GB, free: 8.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005257/0.3997, allocations: 305.5 kB / 1.336 GB, free: 8.184 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.4016, allocations: 1.043 MB / 1.337 GB, free: 7.09 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.4021, allocations: 202.5 kB / 1.337 GB, free: 6.883 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.4023, allocations: 108.7 kB / 1.337 GB, free: 6.773 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001416/0.4024, allocations: 15.98 kB / 1.337 GB, free: 6.758 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.4025, allocations: 34.56 kB / 1.337 GB, free: 6.715 MB / 1.029 GB Notification: Performance of pre-optimization done (n=18): time 1.743e-06/0.4025, allocations: 0 / 1.337 GB, free: 6.715 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.001507/0.404, allocations: 0.7243 MB / 1.338 GB, free: 5.961 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.404, allocations: 55.41 kB / 1.338 GB, free: 5.895 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.4043, allocations: 186.7 kB / 1.338 GB, free: 5.703 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.4043, allocations: 29.7 kB / 1.338 GB, free: 5.668 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.4045, allocations: 160.5 kB / 1.338 GB, free: 5.504 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.4046, allocations: 75.36 kB / 1.338 GB, free: 5.43 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.4047, allocations: 57.62 kB / 1.338 GB, free: 5.367 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002236/0.4049, allocations: 334.8 kB / 1.339 GB, free: 5.031 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.4051, allocations: 107.9 kB / 1.339 GB, free: 4.926 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.4054, allocations: 169.9 kB / 1.339 GB, free: 4.738 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/0.4059, allocations: 300.7 kB / 1.339 GB, free: 4.426 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4059, allocations: 3.938 kB / 1.339 GB, free: 4.422 MB / 1.029 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009025/0.4068, allocations: 418.8 kB / 1.34 GB, free: 4.004 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.4068, allocations: 4 kB / 1.34 GB, free: 4 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.4068, allocations: 7.875 kB / 1.34 GB, free: 3.992 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004884/0.4073, allocations: 101 kB / 1.34 GB, free: 3.891 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.4076, allocations: 47.95 kB / 1.34 GB, free: 3.844 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.4102, allocations: 1.741 MB / 1.341 GB, free: 2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.4104, allocations: 20.08 kB / 1.341 GB, free: 1.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.4104, allocations: 12 kB / 1.341 GB, free: 1.969 MB / 1.029 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.0002468/0.4107, allocations: 153.8 kB / 1.342 GB, free: 1.809 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.954e-05/0.4107, allocations: 15.91 kB / 1.342 GB, free: 1.793 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005907/0.4113, allocations: 304.4 kB / 1.342 GB, free: 1.492 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.4113, allocations: 0 / 1.342 GB, free: 1.492 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4113, allocations: 4 kB / 1.342 GB, free: 1.488 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.4115, allocations: 39.88 kB / 1.342 GB, free: 1.449 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.4115, allocations: 0 / 1.342 GB, free: 1.449 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.4117, allocations: 23.86 kB / 1.342 GB, free: 1.426 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.4117, allocations: 11.97 kB / 1.342 GB, free: 1.414 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007767/0.4125, allocations: 390.6 kB / 1.342 GB, free: 1.027 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007484/0.4132, allocations: 0.5818 MB / 1.343 GB, free: 440 kB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001905/0.4134, allocations: 117.5 kB / 1.343 GB, free: 324 kB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001496/0.4136, allocations: 144.2 kB / 1.343 GB, free: 180 kB / 1.029 GB Notification: Performance of Backend: time 9.12e-07/0.4136, allocations: 0 / 1.343 GB, free: 180 kB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001428/0.415, allocations: 0.5021 MB / 1.344 GB, free: 15.65 MB / 1.045 GB Notification: Performance of SimCode: time 0.001574/0.4166, allocations: 0.9839 MB / 1.345 GB, free: 14.62 MB / 1.045 GB Notification: Performance of Templates: time 0.01159/0.4282, allocations: 4.971 MB / 1.349 GB, free: 9.695 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.322154240995587]