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.001528/0.001528, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001739/0.001739, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.37/1.37, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.615/2.615, allocations: 469.4 MB / 0.7427 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.98 kB / 0.9088 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.351, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.003962/0.355, allocations: 2.621 MB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002187/0.3572, allocations: 1.492 MB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.123e-05/0.3573, allocations: 4 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007757/0.3581, allocations: 227.1 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003815/0.3585, allocations: 183.2 kB / 1.069 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.3588, allocations: 151.6 kB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.3591, allocations: 223.3 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.3594, allocations: 178.5 kB / 1.069 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.3595, allocations: 95.62 kB / 1.069 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.3598, allocations: 119.5 kB / 1.069 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.3598, allocations: 16 kB / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003164/0.3601, allocations: 227.5 kB / 1.07 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.056e-05/0.3602, allocations: 67.86 kB / 1.07 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.487e-05/0.3603, allocations: 95.53 kB / 1.07 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003681/0.3607, allocations: 319.3 kB / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3607, allocations: 0 / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3607, allocations: 0 / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.3607, allocations: 0 / 1.07 GB, free: 9.004 MB / 0.8419 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.0006643/0.3614, allocations: 487.2 kB / 1.071 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.3614, allocations: 16.56 kB / 1.071 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00058/0.362, allocations: 76.64 kB / 1.071 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.3623, allocations: 232.9 kB / 1.071 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.3623, allocations: 16.69 kB / 1.071 GB, free: 8.109 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.961e-05/0.3624, allocations: 20.31 kB / 1.071 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004373/0.3628, allocations: 320.4 kB / 1.071 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.3628, allocations: 3.906 kB / 1.071 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.3628, allocations: 11.98 kB / 1.071 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-05/0.3629, allocations: 20.28 kB / 1.071 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003506/0.3633, allocations: 248.6 kB / 1.071 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.3647, allocations: 1.634 MB / 1.073 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006054/0.3653, allocations: 407.1 kB / 1.073 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.3655, allocations: 93.59 kB / 1.074 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001299/0.3656, allocations: 89.09 kB / 1.074 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.3656, allocations: 42.55 kB / 1.074 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.3656, allocations: 0 / 1.074 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.000626/0.3663, allocations: 304.6 kB / 1.074 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.3663, allocations: 77.11 kB / 1.074 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.3665, allocations: 183.5 kB / 1.074 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.3665, allocations: 29.7 kB / 1.074 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.3666, allocations: 147.8 kB / 1.074 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.3666, allocations: 51.3 kB / 1.074 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.629e-05/0.3667, allocations: 41.7 kB / 1.074 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.3668, allocations: 326.8 kB / 1.075 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.3669, allocations: 88.75 kB / 1.075 GB, free: 3.684 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.3671, allocations: 153.3 kB / 1.075 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.3674, allocations: 238.5 kB / 1.075 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.3674, allocations: 0 / 1.075 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003764/0.3678, allocations: 288.3 kB / 1.075 GB, free: 2.949 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3678, allocations: 8 kB / 1.075 GB, free: 2.941 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.3678, allocations: 0 / 1.075 GB, free: 2.941 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.3678, allocations: 7.938 kB / 1.076 GB, free: 2.934 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.3681, allocations: 55.89 kB / 1.076 GB, free: 2.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.3681, allocations: 4.312 kB / 1.076 GB, free: 2.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.3682, allocations: 19.98 kB / 1.076 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.3682, allocations: 11.94 kB / 1.076 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001616/0.3684, allocations: 176.1 kB / 1.076 GB, free: 2.668 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000141/0.3686, allocations: 146.3 kB / 1.076 GB, free: 2.492 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002388/0.3688, allocations: 230.1 kB / 1.076 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.222e-06/0.3688, allocations: 0 / 1.076 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003304/0.3692, allocations: 253.5 kB / 1.076 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.632e-06/0.3692, allocations: 4 kB / 1.076 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.3692, allocations: 4.188 kB / 1.076 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.14e-06/0.3692, allocations: 7.984 kB / 1.076 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.3694, allocations: 59.78 kB / 1.076 GB, free: 1.902 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3694, allocations: 7.938 kB / 1.076 GB, free: 1.895 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.3695, allocations: 19.92 kB / 1.076 GB, free: 1.875 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.3695, allocations: 8 kB / 1.076 GB, free: 1.867 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 9.512e-05/0.3696, allocations: 192.1 kB / 1.077 GB, free: 1.672 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/0.3697, allocations: 23.84 kB / 1.077 GB, free: 1.648 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000337/0.37, allocations: 203.7 kB / 1.077 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.37, allocations: 4 kB / 1.077 GB, free: 1.438 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3701, allocations: 0 / 1.077 GB, free: 1.438 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3701, allocations: 0 / 1.077 GB, free: 1.438 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.3712, allocations: 0.9731 MB / 1.078 GB, free: 360 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3712, allocations: 4 kB / 1.078 GB, free: 356 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.3713, allocations: 31.97 kB / 1.078 GB, free: 324 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3713, allocations: 4 kB / 1.078 GB, free: 320 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.3713, allocations: 4 kB / 1.078 GB, free: 316 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.85e-06/0.3713, allocations: 7.938 kB / 1.078 GB, free: 308 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.3714, allocations: 7.938 kB / 1.078 GB, free: 300 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5949/0.9662, allocations: 434.8 kB / 1.078 GB, free: 21.89 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.9664, allocations: 106.1 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.9664, allocations: 8.578 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.9667, allocations: 12.33 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.9667, allocations: 23.58 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.9668, allocations: 7.562 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001322/0.9669, allocations: 138.6 kB / 1.079 GB, free: 21.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9669, allocations: 0 / 1.079 GB, free: 21.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005865/0.9675, allocations: 72.53 kB / 1.079 GB, free: 21.71 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.000156/0.9677, allocations: 116.4 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005495/0.9682, allocations: 306.5 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.9682, allocations: 0.8125 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.9684, allocations: 90.5 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.9689, allocations: 31.42 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008637/0.9698, allocations: 0.5064 MB / 1.08 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.97, allocations: 0.7481 MB / 1.08 GB, free: 20.62 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.709e-05/0.9701, allocations: 19.83 kB / 1.08 GB, free: 20.61 MB / 0.8419 GB Notification: Performance of SimCode: time 2.01e-07/0.9701, allocations: 0.6562 kB / 1.08 GB, free: 20.61 MB / 0.8419 GB Notification: Performance of Templates: time 0.005084/0.9752, allocations: 2.343 MB / 1.083 GB, free: 20.52 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/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