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.001604/0.001604, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.002267/0.002267, allocations: 219.7 kB / 23.01 MB, free: 4.605 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.532/1.532, allocations: 230.6 MB / 256.8 MB, free: 8.023 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.335/3.335, allocations: 0.505 GB / 0.8108 GB, free: 22.04 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.002038/0.002038, allocations: 62.91 kB / 1.178 GB, free: 16.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3712, allocations: 180.2 MB / 1.354 GB, free: 7.965 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00535/0.3766, allocations: 3.213 MB / 1.357 GB, free: 4.738 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003159/0.3797, allocations: 1.808 MB / 1.359 GB, free: 2.922 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.3799, allocations: 11.94 kB / 1.359 GB, free: 2.91 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.381, allocations: 350.6 kB / 1.359 GB, free: 2.566 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005796/0.3816, allocations: 215.1 kB / 1.36 GB, free: 2.355 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.3821, allocations: 183.5 kB / 1.36 GB, free: 2.176 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004287/0.3826, allocations: 319 kB / 1.36 GB, free: 1.863 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003737/0.3829, allocations: 172.9 kB / 1.36 GB, free: 1.688 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002502/0.3832, allocations: 143.5 kB / 1.36 GB, free: 1.547 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003437/0.3835, allocations: 179.4 kB / 1.36 GB, free: 1.371 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.601e-05/0.3836, allocations: 20 kB / 1.361 GB, free: 1.352 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004444/0.384, allocations: 247.5 kB / 1.361 GB, free: 1.109 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.3841, allocations: 95.78 kB / 1.361 GB, free: 1.016 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001385/0.3843, allocations: 131.4 kB / 1.361 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005778/0.3849, allocations: 426.5 kB / 1.361 GB, free: 480 kB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3849, allocations: 0 / 1.361 GB, free: 480 kB / 1.045 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3849, allocations: 0 / 1.361 GB, free: 480 kB / 1.045 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3849, allocations: 0 / 1.361 GB, free: 480 kB / 1.045 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.001067/0.3859, allocations: 489.3 kB / 1.362 GB, free: 15.96 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.386, allocations: 12.03 kB / 1.362 GB, free: 15.95 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00076/0.3867, allocations: 100.6 kB / 1.362 GB, free: 15.85 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.3871, allocations: 198.1 kB / 1.362 GB, free: 15.63 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.3871, allocations: 20.81 kB / 1.362 GB, free: 15.61 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.3872, allocations: 24.55 kB / 1.362 GB, free: 15.59 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005919/0.3878, allocations: 376.7 kB / 1.363 GB, free: 15.2 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3878, allocations: 4 kB / 1.363 GB, free: 15.19 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.3879, allocations: 12 kB / 1.363 GB, free: 15.18 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.894e-05/0.388, allocations: 24.42 kB / 1.363 GB, free: 15.16 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004894/0.3885, allocations: 309.5 kB / 1.363 GB, free: 14.86 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.3904, allocations: 1.491 MB / 1.364 GB, free: 13.22 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/0.3909, allocations: 222.2 kB / 1.365 GB, free: 12.99 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.391, allocations: 100.8 kB / 1.365 GB, free: 12.89 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.3912, allocations: 19.98 kB / 1.365 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.3912, allocations: 30.56 kB / 1.365 GB, free: 12.83 MB / 1.061 GB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.3912, allocations: 4 kB / 1.365 GB, free: 12.83 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.001291/0.3925, allocations: 0.7167 MB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.3925, allocations: 59.34 kB / 1.365 GB, free: 12.01 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.3927, allocations: 186.7 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.3928, allocations: 33.7 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.3929, allocations: 164.1 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.15e-05/0.393, allocations: 79.38 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-05/0.3931, allocations: 49.7 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3932, allocations: 330.8 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.3934, allocations: 111.9 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.3936, allocations: 175.5 kB / 1.367 GB, free: 10.85 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.3941, allocations: 298.4 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.3941, allocations: 4 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000785/0.3949, allocations: 409.9 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3949, allocations: 8 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3949, allocations: 3.984 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004405/0.3953, allocations: 104.9 kB / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.3956, allocations: 47.91 kB / 1.367 GB, free: 9.957 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.3977, allocations: 1.783 MB / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.3979, allocations: 23.98 kB / 1.369 GB, free: 8.035 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.3979, allocations: 12 kB / 1.369 GB, free: 8.023 MB / 1.061 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.0001705/0.3981, allocations: 157.7 kB / 1.369 GB, free: 7.859 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.3982, allocations: 19.91 kB / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005126/0.3987, allocations: 291.3 kB / 1.37 GB, free: 7.551 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3987, allocations: 4 kB / 1.37 GB, free: 7.547 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-06/0.3987, allocations: 0 / 1.37 GB, free: 7.547 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3987, allocations: 7.922 kB / 1.37 GB, free: 7.539 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009865/0.3997, allocations: 0.6747 MB / 1.37 GB, free: 6.809 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3997, allocations: 192 / 1.37 GB, free: 6.809 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003064/0.4, allocations: 63.89 kB / 1.37 GB, free: 6.746 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4, allocations: 0 / 1.37 GB, free: 6.746 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.4, allocations: 11.94 kB / 1.37 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4, allocations: 4.062 kB / 1.37 GB, free: 6.73 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4, allocations: 0 / 1.37 GB, free: 6.73 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000642/0.4007, allocations: 0.5164 MB / 1.371 GB, free: 6.195 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.4008, allocations: 43.84 kB / 1.371 GB, free: 6.152 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.4008, allocations: 4 kB / 1.371 GB, free: 6.148 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.401, allocations: 11.98 kB / 1.371 GB, free: 6.137 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.401, allocations: 23.97 kB / 1.371 GB, free: 6.113 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.401, allocations: 8 kB / 1.371 GB, free: 6.105 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001423/0.4012, allocations: 144 kB / 1.371 GB, free: 5.961 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.4012, allocations: 0 / 1.371 GB, free: 5.961 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003679/0.4015, allocations: 68 kB / 1.371 GB, free: 5.895 MB / 1.061 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.0001648/0.4017, allocations: 107.1 kB / 1.371 GB, free: 5.777 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007614/0.4025, allocations: 406.4 kB / 1.372 GB, free: 5.367 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4025, allocations: 0 / 1.372 GB, free: 5.367 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.4026, allocations: 118.2 kB / 1.372 GB, free: 5.254 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.403, allocations: 40.3 kB / 1.372 GB, free: 5.215 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.4043, allocations: 0.6644 MB / 1.372 GB, free: 4.508 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.4047, allocations: 0.7753 MB / 1.373 GB, free: 3.707 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.619e-05/0.4048, allocations: 19.44 kB / 1.373 GB, free: 3.691 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/0.4048, allocations: 0 / 1.373 GB, free: 3.691 MB / 1.061 GB Notification: Performance of Templates: time 0.006314/0.4111, allocations: 3.61 MB / 1.377 GB, free: 92 kB / 1.061 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/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: 12.275569040997652]