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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001018/0.001018, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.008488/0.008488, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.498/1.498, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.814/2.814, allocations: 462.7 MB / 0.7364 GB, free: 368 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003672, allocations: 8.594 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3806, allocations: 159.6 MB / 1.059 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.003321/0.384, allocations: 2.32 MB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002486/0.3865, allocations: 1.473 MB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.3867, allocations: 8 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.3869, allocations: 23.8 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005758/0.3875, allocations: 175.4 kB / 1.063 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004592/0.3879, allocations: 135.7 kB / 1.063 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004164/0.3883, allocations: 347.1 kB / 1.063 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007111/0.3891, allocations: 338.7 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.3892, allocations: 79.62 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/0.3895, allocations: 103.6 kB / 1.064 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.3896, allocations: 8 kB / 1.064 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004324/0.39, allocations: 267.5 kB / 1.064 GB, free: 268 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.804e-05/0.3901, allocations: 71.78 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.3902, allocations: 105.2 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.3907, allocations: 331.1 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3907, allocations: 0 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.126e-06/0.3907, allocations: 4 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3907, allocations: 0 / 1.064 GB, free: 15.75 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.0007617/0.3915, allocations: 451.3 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.3916, allocations: 8.031 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006186/0.3922, allocations: 80.64 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.3925, allocations: 232 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.3925, allocations: 16.69 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/0.3925, allocations: 16.36 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.3931, allocations: 328.4 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.3931, allocations: 3.938 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.3931, allocations: 4 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.253e-05/0.3932, allocations: 28.27 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003817/0.3936, allocations: 252.5 kB / 1.066 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.3952, allocations: 1.626 MB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.3959, allocations: 419.1 kB / 1.068 GB, free: 12 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.396, allocations: 85.66 kB / 1.068 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001483/0.3962, allocations: 85.11 kB / 1.068 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.3962, allocations: 42.55 kB / 1.068 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.3962, allocations: 0 / 1.068 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0007533/0.397, allocations: 296.5 kB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.397, allocations: 85.05 kB / 1.068 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.3972, allocations: 183.9 kB / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.3973, allocations: 25.7 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.3974, allocations: 148.3 kB / 1.069 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.3974, allocations: 55.28 kB / 1.069 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-05/0.3975, allocations: 33.64 kB / 1.069 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.3977, allocations: 322.8 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3978, allocations: 75.95 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.3981, allocations: 150.3 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.3984, allocations: 256.4 kB / 1.069 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3984, allocations: 0 / 1.069 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003987/0.3988, allocations: 269.5 kB / 1.07 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.3989, allocations: 165.5 kB / 1.07 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.399, allocations: 4 kB / 1.07 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.399, allocations: 0 / 1.07 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.3992, allocations: 55.91 kB / 1.07 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3992, allocations: 4 kB / 1.07 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.3994, allocations: 15.97 kB / 1.07 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.3994, allocations: 12 kB / 1.07 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.783e-06/0.3994, allocations: 8 kB / 1.07 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000299/0.3997, allocations: 207.7 kB / 1.07 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3997, allocations: 4 kB / 1.07 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.468e-06/0.3998, allocations: 4 kB / 1.07 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.3999, allocations: 51.91 kB / 1.07 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3999, allocations: 4.312 kB / 1.07 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.4001, allocations: 23.86 kB / 1.07 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.4001, allocations: 12.16 kB / 1.07 GB, free: 9.172 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.0001542/0.4003, allocations: 225 kB / 1.07 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.4003, allocations: 15.84 kB / 1.07 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003859/0.4007, allocations: 204.2 kB / 1.071 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.4007, allocations: 4 kB / 1.071 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.4007, allocations: 12.12 kB / 1.071 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4007, allocations: 0 / 1.071 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.4019, allocations: 0.965 MB / 1.072 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4019, allocations: 0 / 1.072 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.4021, allocations: 39.91 kB / 1.072 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.42e-05/0.4021, allocations: 4.438 kB / 1.072 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.4021, allocations: 4 kB / 1.072 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.4021, allocations: 8 kB / 1.072 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.4022, allocations: 7.984 kB / 1.072 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004177/0.4026, allocations: 440.7 kB / 1.072 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.376e-05/0.4027, allocations: 112.9 kB / 1.072 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.4027, allocations: 7.984 kB / 1.072 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.4029, allocations: 15.98 kB / 1.072 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.403, allocations: 15.92 kB / 1.072 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.403, allocations: 12 kB / 1.072 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001144/0.4031, allocations: 131.8 kB / 1.072 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4031, allocations: 0 / 1.072 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004932/0.4036, allocations: 76 kB / 1.072 GB, free: 6.695 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.0001864/0.4038, allocations: 119 kB / 1.073 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004768/0.4043, allocations: 303.7 kB / 1.073 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4043, allocations: 4.125 kB / 1.073 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.4044, allocations: 75.83 kB / 1.073 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.405, allocations: 44.22 kB / 1.073 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008822/0.4059, allocations: 0.5488 MB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.4063, allocations: 0.7519 MB / 1.074 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000212/0.4065, allocations: 73.47 kB / 1.074 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.278e-05/0.4065, allocations: 15.44 kB / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of SimCode: time 2.154e-06/0.4066, allocations: 0 / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of Templates: time 0.004644/0.4112, allocations: 1.72 MB / 1.076 GB, free: 2.98 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/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