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.005714/0.005714, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.00134/0.00134, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.823/2.823, allocations: 472.6 MB / 0.7453 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.91 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3101, allocations: 159.9 MB / 1.226 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004215/0.3143, allocations: 2.632 MB / 1.228 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002347/0.3167, allocations: 1.48 MB / 1.23 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.3168, allocations: 7.938 kB / 1.23 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000793/0.3176, allocations: 219.1 kB / 1.23 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000501/0.3182, allocations: 203.2 kB / 1.23 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.3186, allocations: 150.9 kB / 1.23 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003186/0.3189, allocations: 223.3 kB / 1.23 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003217/0.3192, allocations: 179.9 kB / 1.231 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.3194, allocations: 91.62 kB / 1.231 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002646/0.3197, allocations: 119.6 kB / 1.231 GB, free: 3.902 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.267e-05/0.3197, allocations: 15.94 kB / 1.231 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003682/0.3201, allocations: 223.6 kB / 1.231 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.275e-05/0.3202, allocations: 71.86 kB / 1.231 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.3203, allocations: 91.53 kB / 1.231 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004705/0.3208, allocations: 334.7 kB / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3208, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3208, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.3208, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 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.0007554/0.3216, allocations: 486.8 kB / 1.232 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.3216, allocations: 8.031 kB / 1.232 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006098/0.3222, allocations: 80.7 kB / 1.232 GB, free: 2.566 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.3225, allocations: 244 kB / 1.232 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3226, allocations: 16.7 kB / 1.232 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.3226, allocations: 12.38 kB / 1.232 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.3231, allocations: 320.4 kB / 1.233 GB, free: 1.914 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3231, allocations: 4 kB / 1.233 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.3231, allocations: 4 kB / 1.233 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.922e-05/0.3232, allocations: 24.27 kB / 1.233 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003824/0.3236, allocations: 252.6 kB / 1.233 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.3251, allocations: 1.638 MB / 1.234 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006078/0.3257, allocations: 415.2 kB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.3259, allocations: 85.67 kB / 1.235 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.326, allocations: 85.09 kB / 1.235 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.326, allocations: 42.5 kB / 1.235 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.693e-06/0.3261, allocations: 0 / 1.235 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.000632/0.3267, allocations: 313.4 kB / 1.235 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.3267, allocations: 77.11 kB / 1.235 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.3269, allocations: 177.9 kB / 1.236 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.3269, allocations: 25.7 kB / 1.236 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.042e-05/0.327, allocations: 156.2 kB / 1.236 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/0.3271, allocations: 55.72 kB / 1.236 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/0.3271, allocations: 45.7 kB / 1.236 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.605e-05/0.3272, allocations: 326.8 kB / 1.236 GB, free: 13.94 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.3274, allocations: 84.8 kB / 1.236 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.3275, allocations: 150.1 kB / 1.236 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.3278, allocations: 241.2 kB / 1.237 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3278, allocations: 0 / 1.237 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003894/0.3282, allocations: 285.5 kB / 1.237 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3283, allocations: 4 kB / 1.237 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.3283, allocations: 11.88 kB / 1.237 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.3283, allocations: 7.938 kB / 1.237 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.3286, allocations: 51.91 kB / 1.237 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3286, allocations: 4 kB / 1.237 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.3287, allocations: 19.97 kB / 1.237 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.3288, allocations: 8 kB / 1.237 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001773/0.3289, allocations: 177 kB / 1.237 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001459/0.3291, allocations: 157.5 kB / 1.237 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002478/0.3294, allocations: 233.4 kB / 1.238 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.894e-06/0.3294, allocations: 0 / 1.238 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003559/0.3297, allocations: 249.3 kB / 1.238 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.3297, allocations: 8 kB / 1.238 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.3298, allocations: 4 kB / 1.238 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.749e-06/0.3298, allocations: 4.344 kB / 1.238 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.3299, allocations: 63.84 kB / 1.238 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.33, allocations: 7.984 kB / 1.238 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.3301, allocations: 19.89 kB / 1.238 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.3301, allocations: 15.92 kB / 1.238 GB, free: 12.02 MB / 0.9981 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.0001142/0.3302, allocations: 192.7 kB / 1.238 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.3303, allocations: 7.953 kB / 1.238 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003853/0.3307, allocations: 215.6 kB / 1.238 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.3307, allocations: 4 kB / 1.238 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3307, allocations: 0 / 1.238 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3307, allocations: 0 / 1.238 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.3319, allocations: 0.9652 MB / 1.239 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.332, allocations: 4 kB / 1.239 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.3321, allocations: 36.34 kB / 1.239 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.3321, allocations: 8 kB / 1.239 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.3321, allocations: 4 kB / 1.239 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.3321, allocations: 4 kB / 1.239 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.247e-06/0.3322, allocations: 11.88 kB / 1.239 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003825/0.3325, allocations: 436.9 kB / 1.24 GB, free: 9.953 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.392e-05/0.3326, allocations: 109 kB / 1.24 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.082e-05/0.3327, allocations: 4 kB / 1.24 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.3329, allocations: 19.97 kB / 1.24 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.255e-05/0.3329, allocations: 15.88 kB / 1.24 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.3329, allocations: 11.98 kB / 1.24 GB, free: 9.777 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001144/0.333, allocations: 139.8 kB / 1.24 GB, free: 9.641 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.333, allocations: 0 / 1.24 GB, free: 9.641 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005193/0.3336, allocations: 72 kB / 1.24 GB, free: 9.57 MB / 0.9981 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.0001482/0.3337, allocations: 111.2 kB / 1.24 GB, free: 9.453 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004693/0.3342, allocations: 319.3 kB / 1.241 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3342, allocations: 3.938 kB / 1.241 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.3343, allocations: 83.77 kB / 1.241 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000496/0.3348, allocations: 41.86 kB / 1.241 GB, free: 9.023 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007741/0.3356, allocations: 486.2 kB / 1.241 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.3359, allocations: 0.7441 MB / 1.242 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001927/0.3361, allocations: 81.5 kB / 1.242 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.611e-05/0.3362, allocations: 23.42 kB / 1.242 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/0.3362, allocations: 0 / 1.242 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of Templates: time 0.004621/0.3408, allocations: 1.83 MB / 1.244 GB, free: 5.793 MB / 0.9981 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