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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008656/0.0008657, allocations: 92.78 kB / 16.02 MB, free: 80 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.001039/0.001039, allocations: 179.5 kB / 16.92 MB, free: 6.652 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.362/1.362, allocations: 223.3 MB / 241 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.697/2.697, allocations: 462.6 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003804/0.0003804, allocations: 10.69 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2786, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.003406/0.282, allocations: 2.32 MB / 1.062 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002315/0.2844, allocations: 1.465 MB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.2845, allocations: 4 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.2847, allocations: 27.78 kB / 1.063 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004955/0.2852, allocations: 171.4 kB / 1.063 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.2856, allocations: 147.6 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003935/0.286, allocations: 351.1 kB / 1.064 GB, free: 476 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000635/0.2866, allocations: 330.7 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.2868, allocations: 79.7 kB / 1.064 GB, free: 44 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.2871, allocations: 111.5 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.484e-05/0.2871, allocations: 8 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004336/0.2876, allocations: 267.5 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.434e-05/0.2877, allocations: 67.8 kB / 1.065 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.2878, allocations: 109.2 kB / 1.065 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.2881, allocations: 243.6 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2881, allocations: 4 kB / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.404e-06/0.2882, allocations: 0 / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.2882, allocations: 3.938 kB / 1.065 GB, free: 15.24 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.0006849/0.2889, allocations: 447.3 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2889, allocations: 19.91 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006021/0.2895, allocations: 80.66 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.2898, allocations: 234.8 kB / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.2898, allocations: 12.7 kB / 1.066 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.402e-05/0.2899, allocations: 12.38 kB / 1.066 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004862/0.2903, allocations: 332.1 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.2904, allocations: 4 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.2904, allocations: 4 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.154e-05/0.2905, allocations: 24.2 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.2908, allocations: 248.6 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.2925, allocations: 1.634 MB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/0.2931, allocations: 407.2 kB / 1.068 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.2933, allocations: 89.89 kB / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001392/0.2934, allocations: 97.02 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.2935, allocations: 30.56 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.893e-06/0.2935, allocations: 0 / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006262/0.2941, allocations: 304.5 kB / 1.069 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.2942, allocations: 81.3 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.2943, allocations: 183.8 kB / 1.069 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.2943, allocations: 29.7 kB / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.826e-05/0.2944, allocations: 148.1 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.851e-05/0.2945, allocations: 51.28 kB / 1.069 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.2945, allocations: 29.66 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.2947, allocations: 326.8 kB / 1.07 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.2948, allocations: 79.88 kB / 1.07 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.2949, allocations: 155.4 kB / 1.07 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.2953, allocations: 241.3 kB / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2953, allocations: 0 / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004121/0.2957, allocations: 281.1 kB / 1.07 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.938e-05/0.2958, allocations: 161.8 kB / 1.07 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2958, allocations: 0 / 1.07 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.2958, allocations: 7.938 kB / 1.07 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.2961, allocations: 55.95 kB / 1.07 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.2961, allocations: 7.938 kB / 1.07 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.2962, allocations: 15.98 kB / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.2963, allocations: 8 kB / 1.07 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.815e-06/0.2963, allocations: 4 kB / 1.07 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003104/0.2966, allocations: 215.2 kB / 1.071 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2966, allocations: 8.031 kB / 1.071 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.532e-06/0.2966, allocations: 8 kB / 1.071 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.2968, allocations: 51.89 kB / 1.071 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.2968, allocations: 4 kB / 1.071 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.2969, allocations: 23.86 kB / 1.071 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.297, allocations: 8 kB / 1.071 GB, free: 8.645 MB / 0.8262 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.0001523/0.2971, allocations: 225 kB / 1.071 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.543e-05/0.2972, allocations: 11.81 kB / 1.071 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000363/0.2976, allocations: 203.8 kB / 1.071 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.2976, allocations: 0 / 1.071 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.2976, allocations: 7.938 kB / 1.071 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2976, allocations: 3.984 kB / 1.071 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.2988, allocations: 0.9576 MB / 1.072 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.2988, allocations: 8.094 kB / 1.072 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.2989, allocations: 35.91 kB / 1.072 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.2989, allocations: 4 kB / 1.072 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.299, allocations: 12 kB / 1.072 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.299, allocations: 4 kB / 1.072 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.299, allocations: 4 kB / 1.072 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00037/0.2994, allocations: 436.8 kB / 1.073 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.562e-05/0.2995, allocations: 108.9 kB / 1.073 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.2995, allocations: 8 kB / 1.073 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.2997, allocations: 11.98 kB / 1.073 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.2997, allocations: 27.86 kB / 1.073 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.2998, allocations: 8 kB / 1.073 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00011/0.2999, allocations: 132.7 kB / 1.073 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2999, allocations: 3.938 kB / 1.073 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004979/0.3004, allocations: 72 kB / 1.073 GB, free: 6.184 MB / 0.8262 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.0001409/0.3005, allocations: 115.1 kB / 1.073 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.301, allocations: 307.5 kB / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.301, allocations: 0 / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.3011, allocations: 85.38 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005273/0.3016, allocations: 41.5 kB / 1.074 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008262/0.3025, allocations: 0.59 MB / 1.074 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.3028, allocations: 0.748 MB / 1.075 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.285e-05/0.3029, allocations: 15.44 kB / 1.075 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.3029, allocations: 0 / 1.075 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of Templates: time 0.004181/0.3071, allocations: 2.333 MB / 1.077 GB, free: 1.859 MB / 0.8262 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/jenkins1/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