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.001548/0.001548, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.882/2.882, allocations: 472.6 MB / 0.7452 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 64.39 kB / 0.9121 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3506, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004505/0.3551, allocations: 2.623 MB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002493/0.3577, allocations: 1.492 MB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.3578, allocations: 4 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007914/0.3586, allocations: 223.1 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000459/0.3591, allocations: 187.2 kB / 1.073 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003975/0.3595, allocations: 155.6 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.3598, allocations: 215.4 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003236/0.3601, allocations: 180.5 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.3603, allocations: 95.67 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.3606, allocations: 119.6 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.3606, allocations: 12 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003455/0.3609, allocations: 227.5 kB / 1.074 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.74e-05/0.361, allocations: 71.86 kB / 1.074 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.3611, allocations: 91.53 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.3615, allocations: 319.3 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3616, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3616, allocations: 3.938 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.3616, allocations: 0 / 1.074 GB, free: 4.355 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.0007671/0.3623, allocations: 495.1 kB / 1.075 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.3624, allocations: 8.031 kB / 1.075 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005874/0.363, allocations: 76.66 kB / 1.075 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.3633, allocations: 238.1 kB / 1.075 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.3633, allocations: 12.7 kB / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.3634, allocations: 20.36 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/0.3638, allocations: 320.4 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.3639, allocations: 0 / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.3639, allocations: 11.98 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.87e-05/0.3639, allocations: 20.27 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003682/0.3643, allocations: 252.6 kB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.3661, allocations: 1.638 MB / 1.077 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006417/0.3667, allocations: 415.2 kB / 1.077 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.3668, allocations: 81.67 kB / 1.078 GB, free: 492 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.367, allocations: 93.08 kB / 1.078 GB, free: 380 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.367, allocations: 34.56 kB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.673e-06/0.367, allocations: 0 / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006884/0.3677, allocations: 308.7 kB / 1.078 GB, free: 20 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.3678, allocations: 81.3 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.368, allocations: 177.2 kB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.368, allocations: 25.7 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.339e-05/0.3681, allocations: 155.7 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.3682, allocations: 47.3 kB / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.3683, allocations: 45.7 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3685, allocations: 326.8 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.3686, allocations: 84.81 kB / 1.079 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.3688, allocations: 150.9 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.3691, allocations: 249.2 kB / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3691, allocations: 0 / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003879/0.3695, allocations: 276.5 kB / 1.079 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3695, allocations: 7.984 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3695, allocations: 4 kB / 1.08 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.3695, allocations: 8.25 kB / 1.08 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/0.3698, allocations: 55.91 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3698, allocations: 4 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.3699, allocations: 23.97 kB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.37, allocations: 8 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001706/0.3701, allocations: 172.1 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000199/0.3703, allocations: 156.1 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002922/0.3706, allocations: 230.1 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.342e-06/0.3707, allocations: 0 / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003601/0.371, allocations: 253.2 kB / 1.08 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.371, allocations: 13.81 kB / 1.08 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-06/0.371, allocations: 0 / 1.08 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.358e-06/0.3711, allocations: 4 kB / 1.08 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.3712, allocations: 51.91 kB / 1.08 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/0.3713, allocations: 11.92 kB / 1.08 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.3714, allocations: 11.94 kB / 1.08 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.3714, allocations: 16.33 kB / 1.08 GB, free: 13.22 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.0001011/0.3715, allocations: 196.2 kB / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.818e-05/0.3716, allocations: 12 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003442/0.3719, allocations: 203.7 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3719, allocations: 3.938 kB / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.372, allocations: 4 kB / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.372, allocations: 0 / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.3731, allocations: 0.9689 MB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.3732, allocations: 4 kB / 1.082 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.3733, allocations: 27.98 kB / 1.082 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.3733, allocations: 7.984 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.3733, allocations: 12 kB / 1.082 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3733, allocations: 7.938 kB / 1.082 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.3734, allocations: 8.375 kB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.3737, allocations: 428.8 kB / 1.082 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.3738, allocations: 108.9 kB / 1.082 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.3739, allocations: 4 kB / 1.082 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.3741, allocations: 23.97 kB / 1.082 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.644e-05/0.3741, allocations: 15.88 kB / 1.082 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.3741, allocations: 16 kB / 1.082 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001068/0.3742, allocations: 136.2 kB / 1.083 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3743, allocations: 0 / 1.083 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005073/0.3748, allocations: 72 kB / 1.083 GB, free: 10.78 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.0001499/0.3749, allocations: 123.6 kB / 1.083 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004811/0.3754, allocations: 308 kB / 1.083 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3754, allocations: 4 kB / 1.083 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.3755, allocations: 88.14 kB / 1.083 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004939/0.376, allocations: 32.86 kB / 1.083 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008269/0.3769, allocations: 492.9 kB / 1.084 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.3772, allocations: 0.748 MB / 1.084 GB, free: 8.918 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000204/0.3774, allocations: 73.62 kB / 1.084 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.539e-05/0.3775, allocations: 19.42 kB / 1.084 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of SimCode: time 1.713e-06/0.3775, allocations: 0 / 1.084 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of Templates: time 0.004651/0.3822, allocations: 1.809 MB / 1.086 GB, free: 7.035 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