Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 197.2 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.956/2.956, allocations: 472.6 MB / 0.7447 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 60.62 kB / 0.9114 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3772, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004736/0.3819, allocations: 2.665 MB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002492/0.3845, allocations: 1.504 MB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.3846, allocations: 0 / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007812/0.3854, allocations: 218.6 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004044/0.3858, allocations: 171.5 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.3862, allocations: 139.7 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003514/0.3865, allocations: 339.1 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003996/0.3869, allocations: 177.9 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.3871, allocations: 87.64 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.3874, allocations: 123.5 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.3874, allocations: 8 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004255/0.3879, allocations: 271.5 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.978e-05/0.388, allocations: 67.8 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.3881, allocations: 87.53 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004359/0.3885, allocations: 331.2 kB / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3885, allocations: 4 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3885, allocations: 0 / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.3886, allocations: 0 / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008314/0.3894, allocations: 491.2 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3895, allocations: 12.03 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006341/0.3901, allocations: 76.59 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.3904, allocations: 236 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.3904, allocations: 8.703 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.3905, allocations: 20.38 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005384/0.391, allocations: 324.3 kB / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.3911, allocations: 0 / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.3911, allocations: 8 kB / 1.075 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.54e-05/0.3911, allocations: 20.27 kB / 1.075 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.3916, allocations: 252.6 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.3934, allocations: 1.638 MB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.3941, allocations: 415.2 kB / 1.077 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.3942, allocations: 89.66 kB / 1.077 GB, free: 0.8008 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001486/0.3944, allocations: 81.11 kB / 1.077 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.3944, allocations: 34.56 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 4.057e-06/0.3944, allocations: 0 / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.000748/0.3952, allocations: 324.5 kB / 1.077 GB, free: 344 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.3952, allocations: 77.11 kB / 1.078 GB, free: 248 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.3954, allocations: 175.3 kB / 1.078 GB, free: 64 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.3955, allocations: 33.7 kB / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.3956, allocations: 147.8 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.3956, allocations: 51.3 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.017e-05/0.3957, allocations: 41.7 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3959, allocations: 327 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.3961, allocations: 92.73 kB / 1.078 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.3963, allocations: 150.6 kB / 1.078 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/0.3966, allocations: 241.3 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3966, allocations: 0 / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004317/0.3971, allocations: 285.1 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3971, allocations: 8.312 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3971, allocations: 4 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/0.3972, allocations: 7.938 kB / 1.079 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.3974, allocations: 51.91 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.3974, allocations: 7.984 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.3976, allocations: 15.98 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.3976, allocations: 8 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001889/0.3978, allocations: 176.1 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001664/0.398, allocations: 143.1 kB / 1.079 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002745/0.3983, allocations: 233.6 kB / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.3983, allocations: 192 / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003931/0.3987, allocations: 257.2 kB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.3987, allocations: 9.031 kB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3987, allocations: 4 kB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.883e-06/0.3987, allocations: 4 kB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.3989, allocations: 59.83 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.3989, allocations: 4 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.399, allocations: 20.28 kB / 1.08 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.3991, allocations: 15.98 kB / 1.08 GB, free: 13.53 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (25): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.3992, allocations: 188.2 kB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/0.3993, allocations: 15.81 kB / 1.08 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003975/0.3997, allocations: 207.7 kB / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.3997, allocations: 4 kB / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.3997, allocations: 4 kB / 1.08 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3997, allocations: 0 / 1.08 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.401, allocations: 0.9651 MB / 1.081 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.4011, allocations: 4 kB / 1.081 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.4012, allocations: 35.91 kB / 1.081 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.286e-05/0.4012, allocations: 4 kB / 1.081 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.4013, allocations: 4.438 kB / 1.081 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.4013, allocations: 8 kB / 1.081 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.367e-05/0.4013, allocations: 11.88 kB / 1.081 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004735/0.4018, allocations: 428.8 kB / 1.082 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.4019, allocations: 112.9 kB / 1.082 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.878e-05/0.4019, allocations: 15.98 kB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.4021, allocations: 11.98 kB / 1.082 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.4022, allocations: 15.92 kB / 1.082 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.4022, allocations: 8 kB / 1.082 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001342/0.4023, allocations: 132.4 kB / 1.082 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4024, allocations: 4 kB / 1.082 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005463/0.4029, allocations: 76 kB / 1.082 GB, free: 11.1 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 simulation (14): * Single equations (assignments): 14 * 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.0002153/0.4031, allocations: 119.1 kB / 1.082 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005313/0.4037, allocations: 299.8 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4037, allocations: 4.438 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.4038, allocations: 87.77 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.4044, allocations: 36.47 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.4055, allocations: 0.5455 MB / 1.083 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.406, allocations: 0.748 MB / 1.084 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002507/0.4062, allocations: 77.47 kB / 1.084 GB, free: 9.109 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/0.4063, allocations: 19.42 kB / 1.084 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of SimCode: time 6.31e-07/0.4063, allocations: 0 / 1.084 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of Templates: time 0.005233/0.4115, allocations: 1.738 MB / 1.086 GB, free: 7.367 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches