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.00151/0.00151, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001526/0.001526, allocations: 211.6 kB / 22.24 MB, free: 4.855 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 8.051 MB / 206.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 3.435/3.435, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 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.002131/0.002131, allocations: 71.38 kB / 1.186 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.38, allocations: 181.9 MB / 1.364 GB, free: 13.62 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005655/0.3857, allocations: 3.095 MB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003514/0.3892, allocations: 1.691 MB / 1.369 GB, free: 8.809 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.3894, allocations: 4 kB / 1.369 GB, free: 8.805 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.3905, allocations: 333.1 kB / 1.369 GB, free: 8.48 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0006302/0.3911, allocations: 219.1 kB / 1.369 GB, free: 8.266 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005746/0.3917, allocations: 179.5 kB / 1.369 GB, free: 8.09 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004466/0.3922, allocations: 323 kB / 1.37 GB, free: 7.773 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.3926, allocations: 168.9 kB / 1.37 GB, free: 7.605 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002976/0.3929, allocations: 139.6 kB / 1.37 GB, free: 7.469 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003456/0.3932, allocations: 171.3 kB / 1.37 GB, free: 7.301 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.952e-05/0.3932, allocations: 28 kB / 1.37 GB, free: 7.273 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000444/0.3937, allocations: 215.6 kB / 1.37 GB, free: 7.062 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.3938, allocations: 103.7 kB / 1.37 GB, free: 6.961 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.394, allocations: 107.5 kB / 1.37 GB, free: 6.855 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006581/0.3946, allocations: 418.5 kB / 1.371 GB, free: 6.445 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3947, allocations: 0 / 1.371 GB, free: 6.445 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3947, allocations: 0 / 1.371 GB, free: 6.445 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.797e-06/0.3947, allocations: 0 / 1.371 GB, free: 6.445 MB / 1.061 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.001172/0.3958, allocations: 0.4895 MB / 1.371 GB, free: 5.926 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3959, allocations: 8.031 kB / 1.371 GB, free: 5.918 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007717/0.3967, allocations: 92.69 kB / 1.371 GB, free: 5.828 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.397, allocations: 199.5 kB / 1.372 GB, free: 5.609 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.3971, allocations: 16.81 kB / 1.372 GB, free: 5.594 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.3972, allocations: 24.55 kB / 1.372 GB, free: 5.57 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000646/0.3978, allocations: 432.1 kB / 1.372 GB, free: 5.117 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.3978, allocations: 0 / 1.372 GB, free: 5.117 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.3979, allocations: 15.94 kB / 1.372 GB, free: 5.102 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.617e-05/0.398, allocations: 28.42 kB / 1.372 GB, free: 5.07 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005025/0.3985, allocations: 301.5 kB / 1.372 GB, free: 4.777 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.4003, allocations: 1.043 MB / 1.373 GB, free: 3.688 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004878/0.4007, allocations: 210.4 kB / 1.374 GB, free: 3.473 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.4009, allocations: 112.7 kB / 1.374 GB, free: 3.359 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.401, allocations: 15.98 kB / 1.374 GB, free: 3.344 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.4011, allocations: 38.5 kB / 1.374 GB, free: 3.297 MB / 1.061 GB Notification: Performance of pre-optimization done (n=18): time 1.402e-06/0.4011, allocations: 0 / 1.374 GB, free: 3.297 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.001369/0.4025, allocations: 0.7189 MB / 1.374 GB, free: 2.547 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.4025, allocations: 55.41 kB / 1.374 GB, free: 2.48 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.4027, allocations: 186.7 kB / 1.375 GB, free: 2.285 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.4027, allocations: 33.7 kB / 1.375 GB, free: 2.246 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.4029, allocations: 168.5 kB / 1.375 GB, free: 2.074 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.43e-05/0.4029, allocations: 67.42 kB / 1.375 GB, free: 2.008 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.684e-05/0.403, allocations: 53.66 kB / 1.375 GB, free: 1.949 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001839/0.4032, allocations: 334.8 kB / 1.375 GB, free: 1.613 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.4034, allocations: 111.9 kB / 1.375 GB, free: 1.504 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.4036, allocations: 169.9 kB / 1.376 GB, free: 1.316 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004546/0.4041, allocations: 309 kB / 1.376 GB, free: 0.9961 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.4041, allocations: 0 / 1.376 GB, free: 0.9961 MB / 1.061 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008105/0.4049, allocations: 406.7 kB / 1.376 GB, free: 0.5898 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.4049, allocations: 13.81 kB / 1.376 GB, free: 0.5781 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4049, allocations: 0 / 1.376 GB, free: 0.5781 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004413/0.4054, allocations: 104.9 kB / 1.376 GB, free: 484 kB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.4056, allocations: 47.91 kB / 1.376 GB, free: 436 kB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.4078, allocations: 1.741 MB / 1.378 GB, free: 14.58 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.408, allocations: 20.02 kB / 1.378 GB, free: 14.56 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.79e-05/0.408, allocations: 15.98 kB / 1.378 GB, free: 14.55 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.0001926/0.4082, allocations: 157.7 kB / 1.378 GB, free: 14.38 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/0.4083, allocations: 15.91 kB / 1.378 GB, free: 14.37 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000547/0.4088, allocations: 299.2 kB / 1.379 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.4088, allocations: 4.062 kB / 1.379 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4088, allocations: 4 kB / 1.379 GB, free: 14.06 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.4088, allocations: 0 / 1.379 GB, free: 14.06 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009682/0.4098, allocations: 0.6127 MB / 1.379 GB, free: 13.41 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4098, allocations: 0 / 1.379 GB, free: 13.41 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.4101, allocations: 59.95 kB / 1.379 GB, free: 13.35 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.4101, allocations: 0 / 1.379 GB, free: 13.35 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.4101, allocations: 4 kB / 1.379 GB, free: 13.34 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4101, allocations: 0 / 1.379 GB, free: 13.34 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4101, allocations: 4 kB / 1.379 GB, free: 13.34 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006915/0.4108, allocations: 0.5232 MB / 1.38 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.4109, allocations: 35.92 kB / 1.38 GB, free: 12.76 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.4109, allocations: 4 kB / 1.38 GB, free: 12.76 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.4111, allocations: 15.97 kB / 1.38 GB, free: 12.74 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.4112, allocations: 15.92 kB / 1.38 GB, free: 12.73 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.4112, allocations: 4 kB / 1.38 GB, free: 12.72 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001471/0.4113, allocations: 139.2 kB / 1.38 GB, free: 12.59 MB / 1.076 GB Notification: Performance of sort global known variables: time 6e-08/0.4113, allocations: 0 / 1.38 GB, free: 12.59 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003696/0.4117, allocations: 71.94 kB / 1.38 GB, free: 12.52 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.0001691/0.4119, allocations: 111.2 kB / 1.38 GB, free: 12.39 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0007908/0.4126, allocations: 414.5 kB / 1.381 GB, free: 11.98 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4126, allocations: 0 / 1.381 GB, free: 11.98 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.4128, allocations: 113.8 kB / 1.381 GB, free: 11.87 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.4132, allocations: 38.91 kB / 1.381 GB, free: 11.83 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.4145, allocations: 0.6274 MB / 1.381 GB, free: 11.17 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.4147, allocations: 165.4 kB / 1.381 GB, free: 10.99 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001691/0.4148, allocations: 57.91 kB / 1.382 GB, free: 10.93 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.958e-05/0.4149, allocations: 19.44 kB / 1.382 GB, free: 10.91 MB / 1.076 GB Notification: Performance of SimCode: time 3.51e-07/0.4149, allocations: 0 / 1.382 GB, free: 10.91 MB / 1.076 GB Notification: Performance of Templates: time 0.0072/0.4221, allocations: 3 MB / 1.384 GB, free: 7.945 MB / 1.076 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: 9.55220085196197]