Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001495/0.001496, allocations: 105.4 kB / 15.99 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.001457/0.001457, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.341/1.341, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.549/2.549, allocations: 469.8 MB / 0.7427 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 64.41 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3295, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004399/0.3339, allocations: 2.667 MB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00237/0.3363, allocations: 1.484 MB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.325e-05/0.3364, allocations: 0 / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007639/0.3372, allocations: 211.3 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004457/0.3377, allocations: 179.4 kB / 1.069 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00035/0.3381, allocations: 135.7 kB / 1.069 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000301/0.3384, allocations: 231.3 kB / 1.069 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000395/0.3388, allocations: 194.5 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.3389, allocations: 95.62 kB / 1.069 GB, free: 9.906 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.3392, allocations: 123.6 kB / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.3392, allocations: 12 kB / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003348/0.3396, allocations: 219.6 kB / 1.07 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.734e-05/0.3397, allocations: 75.84 kB / 1.07 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.896e-05/0.3398, allocations: 83.55 kB / 1.07 GB, free: 9.402 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.3401, allocations: 259.6 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3401, allocations: 4 kB / 1.07 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.983e-06/0.3401, allocations: 3.938 kB / 1.07 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.3402, allocations: 4 kB / 1.07 GB, free: 9.137 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.0007816/0.3409, allocations: 479.2 kB / 1.07 GB, free: 8.621 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.341, allocations: 8.031 kB / 1.07 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005683/0.3416, allocations: 84.62 kB / 1.07 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.3419, allocations: 228.1 kB / 1.071 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.3419, allocations: 12.7 kB / 1.071 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.3419, allocations: 12.38 kB / 1.071 GB, free: 8.246 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005232/0.3425, allocations: 324.4 kB / 1.071 GB, free: 7.895 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3425, allocations: 11.84 kB / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.3425, allocations: 8 kB / 1.071 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-05/0.3426, allocations: 20.27 kB / 1.071 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000404/0.343, allocations: 252.6 kB / 1.071 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.3448, allocations: 1.634 MB / 1.073 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006803/0.3455, allocations: 419 kB / 1.073 GB, free: 5.359 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.3457, allocations: 89.66 kB / 1.073 GB, free: 5.266 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001562/0.3458, allocations: 89.09 kB / 1.073 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.3459, allocations: 30.56 kB / 1.074 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/0.3459, allocations: 4 kB / 1.074 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0006858/0.3466, allocations: 308.6 kB / 1.074 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.3466, allocations: 85.05 kB / 1.074 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.3468, allocations: 175.3 kB / 1.074 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.3469, allocations: 29.7 kB / 1.074 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.347, allocations: 151.8 kB / 1.074 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.54e-05/0.347, allocations: 47.3 kB / 1.074 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.3471, allocations: 49.88 kB / 1.074 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3473, allocations: 327 kB / 1.075 GB, free: 3.906 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.3474, allocations: 80.81 kB / 1.075 GB, free: 3.824 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3476, allocations: 159 kB / 1.075 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.3479, allocations: 254.9 kB / 1.075 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3479, allocations: 0 / 1.075 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004115/0.3484, allocations: 261.5 kB / 1.075 GB, free: 3.094 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3484, allocations: 12.03 kB / 1.075 GB, free: 3.082 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3484, allocations: 4 kB / 1.075 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3484, allocations: 7.938 kB / 1.075 GB, free: 3.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.3487, allocations: 55.89 kB / 1.075 GB, free: 3.016 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.3487, allocations: 7.938 kB / 1.075 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.3488, allocations: 11.98 kB / 1.075 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.3488, allocations: 12 kB / 1.075 GB, free: 2.984 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001848/0.349, allocations: 176.1 kB / 1.076 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001656/0.3492, allocations: 151.3 kB / 1.076 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002793/0.3495, allocations: 232.3 kB / 1.076 GB, free: 2.363 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.808e-06/0.3495, allocations: 4 kB / 1.076 GB, free: 2.359 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003584/0.3499, allocations: 249.2 kB / 1.076 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/0.3499, allocations: 7.984 kB / 1.076 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3499, allocations: 4 kB / 1.076 GB, free: 2.098 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.741e-06/0.3499, allocations: 4 kB / 1.076 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.3501, allocations: 51.84 kB / 1.076 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3501, allocations: 4.344 kB / 1.076 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.3502, allocations: 23.92 kB / 1.076 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.3503, allocations: 12 kB / 1.076 GB, free: 2.004 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.0001266/0.3504, allocations: 192.1 kB / 1.077 GB, free: 1.809 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.372e-05/0.3504, allocations: 15.81 kB / 1.077 GB, free: 1.793 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003634/0.3508, allocations: 203.7 kB / 1.077 GB, free: 1.586 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.3508, allocations: 4 kB / 1.077 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3508, allocations: 0 / 1.077 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.3508, allocations: 3.984 kB / 1.077 GB, free: 1.578 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.3521, allocations: 0.9689 MB / 1.078 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.3521, allocations: 4 kB / 1.078 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.3523, allocations: 39.91 kB / 1.078 GB, free: 464 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.3523, allocations: 4.438 kB / 1.078 GB, free: 460 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.3523, allocations: 8 kB / 1.078 GB, free: 452 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3523, allocations: 4 kB / 1.078 GB, free: 448 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.856e-06/0.3523, allocations: 7.938 kB / 1.078 GB, free: 440 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5102/0.8625, allocations: 431.1 kB / 1.078 GB, free: 21.88 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.8627, allocations: 106.3 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.472e-05/0.8628, allocations: 8.25 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.863, allocations: 16.52 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.388e-05/0.8631, allocations: 21.34 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.8631, allocations: 8.031 kB / 1.078 GB, free: 21.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001208/0.8632, allocations: 133.6 kB / 1.078 GB, free: 21.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8632, allocations: 0 / 1.078 GB, free: 21.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006238/0.8639, allocations: 75.83 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.0001528/0.864, allocations: 113.7 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000552/0.8646, allocations: 312.5 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.8646, allocations: 0.75 kB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.8647, allocations: 85.73 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.0004862/0.8652, allocations: 33.19 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.0007958/0.866, allocations: 0.567 MB / 1.08 GB, free: 21.24 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.8662, allocations: 0.7478 MB / 1.08 GB, free: 20.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.657e-05/0.8663, allocations: 22.28 kB / 1.08 GB, free: 20.54 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.8663, allocations: 0.8125 kB / 1.08 GB, free: 20.54 MB / 0.8419 GB Notification: Performance of Templates: time 0.004387/0.8707, allocations: 2.356 MB / 1.083 GB, free: 20.45 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches