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.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.001618/0.001618, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.001851/0.001851, allocations: 190.5 kB / 22.11 MB, free: 5.152 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.498/1.498, allocations: 225.6 MB / 250.8 MB, free: 13.07 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.278/3.278, allocations: 495.8 MB / 0.783 GB, free: 33.48 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-maint.12.x/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_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: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 64.89 kB / 1.137 GB, free: 33.87 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3576, allocations: 173.6 MB / 1.307 GB, free: 1.852 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005808/0.3634, allocations: 3.195 MB / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.00326/0.3666, allocations: 1.773 MB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.3668, allocations: 4 kB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.001192/0.368, allocations: 350.6 kB / 1.312 GB, free: 12.51 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.000655/0.3687, allocations: 219.1 kB / 1.312 GB, free: 12.3 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0005963/0.3693, allocations: 179.5 kB / 1.312 GB, free: 12.12 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0005169/0.3698, allocations: 319 kB / 1.313 GB, free: 11.81 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003973/0.3702, allocations: 161.1 kB / 1.313 GB, free: 11.65 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.3705, allocations: 139.6 kB / 1.313 GB, free: 11.51 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004443/0.3709, allocations: 171.4 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 6.45e-05/0.371, allocations: 20 kB / 1.313 GB, free: 11.32 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0004862/0.3715, allocations: 227.5 kB / 1.313 GB, free: 11.1 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.3716, allocations: 99.72 kB / 1.313 GB, free: 11 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.3718, allocations: 127.4 kB / 1.314 GB, free: 10.88 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0007/0.3725, allocations: 426.5 kB / 1.314 GB, free: 10.46 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3725, allocations: 0 / 1.314 GB, free: 10.46 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.503e-06/0.3725, allocations: 0 / 1.314 GB, free: 10.46 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.838e-05/0.3725, allocations: 0 / 1.314 GB, free: 10.46 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.001178/0.3737, allocations: 485.4 kB / 1.314 GB, free: 9.957 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3737, allocations: 12.86 kB / 1.314 GB, free: 9.945 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008105/0.3745, allocations: 96.67 kB / 1.314 GB, free: 9.852 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.3749, allocations: 202.1 kB / 1.315 GB, free: 9.629 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.375, allocations: 16.81 kB / 1.315 GB, free: 9.613 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.3751, allocations: 24.55 kB / 1.315 GB, free: 9.59 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007039/0.3758, allocations: 380.7 kB / 1.315 GB, free: 9.188 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3758, allocations: 4 kB / 1.315 GB, free: 9.184 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.3758, allocations: 8 kB / 1.315 GB, free: 9.176 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.3759, allocations: 24.42 kB / 1.315 GB, free: 9.152 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005272/0.3765, allocations: 309.5 kB / 1.315 GB, free: 8.852 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.3785, allocations: 1.491 MB / 1.317 GB, free: 7.211 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004635/0.379, allocations: 218.3 kB / 1.317 GB, free: 6.988 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.3792, allocations: 100.8 kB / 1.317 GB, free: 6.887 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.3793, allocations: 15.98 kB / 1.317 GB, free: 6.871 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.3793, allocations: 34.56 kB / 1.317 GB, free: 6.828 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=18): time 1.824e-06/0.3793, allocations: 0 / 1.317 GB, free: 6.828 MB / 1.014 GB
Notification: Performance of matching and sorting (n=19): time 0.001437/0.3807, allocations: 0.7167 MB / 1.318 GB, free: 6.082 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.3808, allocations: 63.34 kB / 1.318 GB, free: 6.008 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.381, allocations: 200 kB / 1.318 GB, free: 5.805 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.3811, allocations: 29.7 kB / 1.318 GB, free: 5.77 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3812, allocations: 172.1 kB / 1.318 GB, free: 5.598 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 7.441e-05/0.3813, allocations: 67.44 kB / 1.318 GB, free: 5.531 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.3814, allocations: 53.69 kB / 1.318 GB, free: 5.473 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001625/0.3815, allocations: 334.8 kB / 1.319 GB, free: 5.137 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.3817, allocations: 111.9 kB / 1.319 GB, free: 5.027 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.382, allocations: 165.9 kB / 1.319 GB, free: 4.844 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.3824, allocations: 291.5 kB / 1.319 GB, free: 4.539 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3824, allocations: 4 kB / 1.319 GB, free: 4.535 MB / 1.014 GB
Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008489/0.3833, allocations: 429.1 kB / 1.32 GB, free: 4.109 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3833, allocations: 4 kB / 1.32 GB, free: 4.105 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3833, allocations: 4 kB / 1.32 GB, free: 4.102 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004505/0.3838, allocations: 100.9 kB / 1.32 GB, free: 4 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.384, allocations: 51.97 kB / 1.32 GB, free: 3.949 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.3863, allocations: 1.776 MB / 1.322 GB, free: 2.059 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.3865, allocations: 19.95 kB / 1.322 GB, free: 2.039 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.3865, allocations: 16.06 kB / 1.322 GB, free: 2.023 MB / 1.014 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.0001721/0.3867, allocations: 153.8 kB / 1.322 GB, free: 1.863 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.773e-05/0.3868, allocations: 15.91 kB / 1.322 GB, free: 1.848 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005585/0.3873, allocations: 299.2 kB / 1.322 GB, free: 1.551 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3873, allocations: 4 kB / 1.322 GB, free: 1.547 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.3873, allocations: 4 kB / 1.322 GB, free: 1.543 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3874, allocations: 3.938 kB / 1.322 GB, free: 1.539 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.3884, allocations: 0.6669 MB / 1.323 GB, free: 0.8164 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3884, allocations: 0 / 1.323 GB, free: 0.8164 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000338/0.3887, allocations: 59.89 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3887, allocations: 0 / 1.323 GB, free: 0.7578 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.3887, allocations: 15.92 kB / 1.323 GB, free: 0.7422 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3887, allocations: 64 / 1.323 GB, free: 0.7422 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3887, allocations: 8 kB / 1.323 GB, free: 0.7344 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007059/0.3894, allocations: 0.5207 MB / 1.323 GB, free: 200 kB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.3895, allocations: 43.75 kB / 1.323 GB, free: 156 kB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.929e-05/0.3896, allocations: 4 kB / 1.323 GB, free: 152 kB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.3898, allocations: 11.98 kB / 1.323 GB, free: 140 kB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.3898, allocations: 20.03 kB / 1.323 GB, free: 120 kB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.3898, allocations: 8 kB / 1.323 GB, free: 112 kB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.000184/0.39, allocations: 149.1 kB / 1.324 GB, free: 15.96 MB / 1.029 GB
Notification: Performance of sort global known variables: time 9e-08/0.39, allocations: 0 / 1.324 GB, free: 15.96 MB / 1.029 GB
Notification: Performance of remove unused functions: time 0.0003715/0.3904, allocations: 67.94 kB / 1.324 GB, free: 15.89 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.0001733/0.3906, allocations: 107.2 kB / 1.324 GB, free: 15.78 MB / 1.029 GB
Notification: Performance of simCode: created initialization part: time 0.0007884/0.3913, allocations: 410.4 kB / 1.324 GB, free: 15.36 MB / 1.029 GB
Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3913, allocations: 0 / 1.324 GB, free: 15.36 MB / 1.029 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.3915, allocations: 119.8 kB / 1.324 GB, free: 15.25 MB / 1.029 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.3919, allocations: 43.17 kB / 1.324 GB, free: 15.21 MB / 1.029 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.3933, allocations: 0.6293 MB / 1.325 GB, free: 14.55 MB / 1.029 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.3937, allocations: 0.7753 MB / 1.326 GB, free: 13.75 MB / 1.029 GB
Notification: Performance of simCode: alias equations: time 0.0001666/0.3939, allocations: 57.89 kB / 1.326 GB, free: 13.69 MB / 1.029 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.234e-05/0.394, allocations: 23.44 kB / 1.326 GB, free: 13.67 MB / 1.029 GB
Notification: Performance of SimCode: time 5.61e-07/0.394, allocations: 0 / 1.326 GB, free: 13.67 MB / 1.029 GB
Notification: Performance of Templates: time 0.007637/0.4016, allocations: 3.012 MB / 1.329 GB, free: 10.67 MB / 1.029 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/jenkins/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.14704710803926]