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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 109 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 193 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.169/3.169, allocations: 0.4893 GB / 0.7884 GB, free: 33.2 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001998/0.001998, allocations: 63.3 kB / 1.145 GB, free: 30.72 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3664, allocations: 174.9 MB / 1.316 GB, free: 9.801 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00589/0.3723, allocations: 3.199 MB / 1.319 GB, free: 6.59 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.003337/0.3756, allocations: 1.788 MB / 1.321 GB, free: 4.793 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.3758, allocations: 7.938 kB / 1.321 GB, free: 4.785 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.001232/0.3771, allocations: 350.3 kB / 1.321 GB, free: 4.445 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0006278/0.3777, allocations: 219.1 kB / 1.321 GB, free: 4.23 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.3782, allocations: 183.5 kB / 1.322 GB, free: 4.051 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0004181/0.3786, allocations: 311 kB / 1.322 GB, free: 3.746 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.000377/0.379, allocations: 165.1 kB / 1.322 GB, free: 3.582 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/0.3792, allocations: 143.5 kB / 1.322 GB, free: 3.441 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003415/0.3796, allocations: 171.4 kB / 1.322 GB, free: 3.273 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.3796, allocations: 20 kB / 1.322 GB, free: 3.254 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.000432/0.38, allocations: 259.5 kB / 1.323 GB, free: 3 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.3802, allocations: 99.72 kB / 1.323 GB, free: 2.902 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.3803, allocations: 123.4 kB / 1.323 GB, free: 2.781 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0005785/0.3809, allocations: 418.5 kB / 1.323 GB, free: 2.371 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3809, allocations: 0 / 1.323 GB, free: 2.371 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.232e-06/0.3809, allocations: 3.938 kB / 1.323 GB, free: 2.367 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.262e-06/0.3809, allocations: 3.938 kB / 1.323 GB, free: 2.363 MB / 1.014 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.0009977/0.3819, allocations: 493.4 kB / 1.324 GB, free: 1.852 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.3819, allocations: 8.031 kB / 1.324 GB, free: 1.844 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007626/0.3827, allocations: 92.69 kB / 1.324 GB, free: 1.754 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.3831, allocations: 202.1 kB / 1.324 GB, free: 1.531 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.3831, allocations: 16.8 kB / 1.324 GB, free: 1.516 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-05/0.3832, allocations: 24.56 kB / 1.324 GB, free: 1.492 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000613/0.3838, allocations: 372.7 kB / 1.324 GB, free: 1.102 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.3838, allocations: 4 kB / 1.324 GB, free: 1.098 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.3838, allocations: 8 kB / 1.324 GB, free: 1.09 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.677e-05/0.3839, allocations: 28.41 kB / 1.324 GB, free: 1.062 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005006/0.3844, allocations: 317.4 kB / 1.325 GB, free: 0.7539 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.3864, allocations: 1.487 MB / 1.326 GB, free: 15.12 MB / 1.029 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.000456/0.3869, allocations: 214.4 kB / 1.326 GB, free: 14.9 MB / 1.029 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.387, allocations: 113 kB / 1.327 GB, free: 14.79 MB / 1.029 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.3871, allocations: 7.984 kB / 1.327 GB, free: 14.78 MB / 1.029 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.3872, allocations: 38.47 kB / 1.327 GB, free: 14.73 MB / 1.029 GB
Notification: Performance of pre-optimization done (n=18): time 1.302e-06/0.3872, allocations: 0 / 1.327 GB, free: 14.73 MB / 1.029 GB
Notification: Performance of matching and sorting (n=19): time 0.001276/0.3884, allocations: 0.7107 MB / 1.327 GB, free: 13.99 MB / 1.029 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.3885, allocations: 63.39 kB / 1.327 GB, free: 13.91 MB / 1.029 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.3887, allocations: 195.2 kB / 1.327 GB, free: 13.71 MB / 1.029 GB
Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3887, allocations: 29.7 kB / 1.328 GB, free: 13.68 MB / 1.029 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.3889, allocations: 164.2 kB / 1.328 GB, free: 13.52 MB / 1.029 GB
Notification: Performance of collectInitialBindings (initialization): time 6.37e-05/0.3889, allocations: 67.42 kB / 1.328 GB, free: 13.45 MB / 1.029 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.389, allocations: 57.64 kB / 1.328 GB, free: 13.39 MB / 1.029 GB
Notification: Performance of setup shared object (initialization): time 0.0001565/0.3892, allocations: 334.8 kB / 1.328 GB, free: 13.05 MB / 1.029 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.3894, allocations: 111.9 kB / 1.328 GB, free: 12.94 MB / 1.029 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.3896, allocations: 177.9 kB / 1.328 GB, free: 12.75 MB / 1.029 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004417/0.39, allocations: 303.9 kB / 1.329 GB, free: 12.43 MB / 1.029 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.39, allocations: 0 / 1.329 GB, free: 12.43 MB / 1.029 GB
Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008174/0.3909, allocations: 420.8 kB / 1.329 GB, free: 12.01 MB / 1.029 GB
Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3909, allocations: 8.188 kB / 1.329 GB, free: 12 MB / 1.029 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.3909, allocations: 4 kB / 1.329 GB, free: 12 MB / 1.029 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004206/0.3913, allocations: 92.77 kB / 1.329 GB, free: 11.91 MB / 1.029 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.3916, allocations: 55.89 kB / 1.329 GB, free: 11.85 MB / 1.029 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.3937, allocations: 1.768 MB / 1.331 GB, free: 9.969 MB / 1.029 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.3939, allocations: 23.94 kB / 1.331 GB, free: 9.945 MB / 1.029 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.3939, allocations: 12 kB / 1.331 GB, free: 9.934 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.0001781/0.3941, allocations: 157.8 kB / 1.331 GB, free: 9.77 MB / 1.029 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.938e-05/0.3941, allocations: 15.91 kB / 1.331 GB, free: 9.754 MB / 1.029 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005307/0.3947, allocations: 305.2 kB / 1.331 GB, free: 9.449 MB / 1.029 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3947, allocations: 4 kB / 1.331 GB, free: 9.445 MB / 1.029 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.3947, allocations: 0 / 1.331 GB, free: 9.445 MB / 1.029 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3947, allocations: 7.875 kB / 1.331 GB, free: 9.438 MB / 1.029 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.3957, allocations: 0.6691 MB / 1.332 GB, free: 8.715 MB / 1.029 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.3957, allocations: 0 / 1.332 GB, free: 8.715 MB / 1.029 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.396, allocations: 60.02 kB / 1.332 GB, free: 8.656 MB / 1.029 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.396, allocations: 0 / 1.332 GB, free: 8.656 MB / 1.029 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.396, allocations: 11.94 kB / 1.332 GB, free: 8.645 MB / 1.029 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.396, allocations: 0 / 1.332 GB, free: 8.645 MB / 1.029 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.396, allocations: 7.938 kB / 1.332 GB, free: 8.637 MB / 1.029 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006664/0.3967, allocations: 0.5165 MB / 1.333 GB, free: 8.098 MB / 1.029 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.3968, allocations: 35.83 kB / 1.333 GB, free: 8.062 MB / 1.029 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.3968, allocations: 15.92 kB / 1.333 GB, free: 8.047 MB / 1.029 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.397, allocations: 11.98 kB / 1.333 GB, free: 8.035 MB / 1.029 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.397, allocations: 11.98 kB / 1.333 GB, free: 8.023 MB / 1.029 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.397, allocations: 4 kB / 1.333 GB, free: 8.02 MB / 1.029 GB
Notification: Performance of sorting global known variables: time 0.0001465/0.3972, allocations: 149.1 kB / 1.333 GB, free: 7.871 MB / 1.029 GB
Notification: Performance of sort global known variables: time 9e-08/0.3972, allocations: 0 / 1.333 GB, free: 7.871 MB / 1.029 GB
Notification: Performance of remove unused functions: time 0.0003556/0.3976, allocations: 67.94 kB / 1.333 GB, free: 7.805 MB / 1.029 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.0001611/0.3977, allocations: 116.8 kB / 1.333 GB, free: 7.68 MB / 1.029 GB
Notification: Performance of simCode: created initialization part: time 0.0007606/0.3985, allocations: 407.7 kB / 1.333 GB, free: 7.27 MB / 1.029 GB
Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3985, allocations: 0 / 1.333 GB, free: 7.27 MB / 1.029 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.3986, allocations: 112.3 kB / 1.334 GB, free: 7.16 MB / 1.029 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.399, allocations: 45.59 kB / 1.334 GB, free: 7.117 MB / 1.029 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.4002, allocations: 0.6313 MB / 1.334 GB, free: 6.453 MB / 1.029 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.4007, allocations: 0.7753 MB / 1.335 GB, free: 5.652 MB / 1.029 GB
Notification: Performance of simCode: alias equations: time 0.0001555/0.4009, allocations: 57.91 kB / 1.335 GB, free: 5.598 MB / 1.029 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.725e-05/0.401, allocations: 19.44 kB / 1.335 GB, free: 5.578 MB / 1.029 GB
Notification: Performance of SimCode: time 3.11e-07/0.401, allocations: 0 / 1.335 GB, free: 5.578 MB / 1.029 GB
Notification: Performance of Templates: time 0.00731/0.4083, allocations: 3.008 MB / 1.338 GB, free: 2.582 MB / 1.029 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.072141812182963]