Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001583/0.001583, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001839/0.00184, allocations: 187 kB / 17.34 MB, free: 5.762 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.242/2.242, allocations: 390.2 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002362/0.002362, allocations: 63.91 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8951/0.8975, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.003917/0.9015, allocations: 2.606 MB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002216/0.9037, allocations: 1.493 MB / 1.093 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.9039, allocations: 6.688 kB / 1.093 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007991/0.9047, allocations: 229.5 kB / 1.093 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004933/0.9052, allocations: 180.6 kB / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.9056, allocations: 155.3 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002931/0.9059, allocations: 224.7 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.9062, allocations: 171.5 kB / 1.094 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.9064, allocations: 102.5 kB / 1.094 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002652/0.9067, allocations: 118.7 kB / 1.094 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.506e-05/0.9067, allocations: 14 kB / 1.094 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004171/0.9071, allocations: 214.9 kB / 1.094 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.9073, allocations: 81 kB / 1.094 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.9074, allocations: 82.7 kB / 1.094 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005144/0.9079, allocations: 330 kB / 1.094 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.9079, allocations: 1.562 kB / 1.094 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9079, allocations: 0 / 1.094 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.9079, allocations: 4.844 kB / 1.094 GB, free: 1.918 MB / 0.8575 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.0007193/0.9086, allocations: 492.1 kB / 1.095 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.9087, allocations: 9.828 kB / 1.095 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006308/0.9093, allocations: 76.47 kB / 1.095 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.9096, allocations: 232.4 kB / 1.095 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.9097, allocations: 23.83 kB / 1.095 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.9097, allocations: 15.25 kB / 1.095 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005177/0.9102, allocations: 326.7 kB / 1.096 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.9103, allocations: 5.188 kB / 1.096 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.9103, allocations: 6.469 kB / 1.096 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.904e-05/0.9104, allocations: 23.08 kB / 1.096 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004474/0.9108, allocations: 252.5 kB / 1.096 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.9123, allocations: 1.623 MB / 1.097 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006907/0.913, allocations: 415.3 kB / 1.098 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.9132, allocations: 88.64 kB / 1.098 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.9134, allocations: 85.83 kB / 1.098 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.9134, allocations: 36.27 kB / 1.098 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.9134, allocations: 1.531 kB / 1.098 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0006978/0.9141, allocations: 315.3 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.9142, allocations: 83.83 kB / 1.098 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.9144, allocations: 168.9 kB / 1.099 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.9144, allocations: 35.3 kB / 1.099 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 9.667e-05/0.9145, allocations: 149.6 kB / 1.099 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.662e-05/0.9145, allocations: 55.16 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.392e-05/0.9146, allocations: 47.39 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.9148, allocations: 322.7 kB / 1.099 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.9149, allocations: 86.05 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.9151, allocations: 156.4 kB / 1.099 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.9154, allocations: 253.6 kB / 1.1 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.9155, allocations: 1.062 kB / 1.1 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004271/0.9159, allocations: 269 kB / 1.1 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.9159, allocations: 6.031 kB / 1.1 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.9159, allocations: 2.406 kB / 1.1 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.916, allocations: 9.234 kB / 1.1 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.9162, allocations: 61.84 kB / 1.1 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.9162, allocations: 4.016 kB / 1.1 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.9164, allocations: 17.08 kB / 1.1 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.9164, allocations: 9.312 kB / 1.1 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000193/0.9166, allocations: 178.5 kB / 1.1 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001579/0.9168, allocations: 144.2 kB / 1.1 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000287/0.9171, allocations: 230.8 kB / 1.101 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.775e-06/0.9171, allocations: 1.719 kB / 1.101 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0004159/0.9175, allocations: 255.8 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.9175, allocations: 9.562 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.9175, allocations: 2.031 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.182e-06/0.9175, allocations: 4.125 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.9177, allocations: 53.47 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.9177, allocations: 5.984 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.9179, allocations: 13.55 kB / 1.101 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.9179, allocations: 13.12 kB / 1.101 GB, free: 13.08 MB / 0.8731 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.0001131/0.918, allocations: 199.5 kB / 1.101 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.9181, allocations: 14.44 kB / 1.101 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.9185, allocations: 210 kB / 1.101 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.9185, allocations: 2.797 kB / 1.101 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.9185, allocations: 1.062 kB / 1.101 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.9185, allocations: 0.6094 kB / 1.101 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.9199, allocations: 0.9637 MB / 1.102 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.9199, allocations: 3.312 kB / 1.102 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.92, allocations: 39 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.92, allocations: 3.969 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.9201, allocations: 5.234 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.9201, allocations: 5.25 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/0.9201, allocations: 11.53 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/0.9205, allocations: 442 kB / 1.103 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.098e-05/0.9206, allocations: 107.1 kB / 1.103 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.9206, allocations: 8.922 kB / 1.103 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.9208, allocations: 16.33 kB / 1.103 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.9209, allocations: 23.23 kB / 1.103 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.9209, allocations: 6.984 kB / 1.103 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001244/0.921, allocations: 145.9 kB / 1.103 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.921, allocations: 0 / 1.103 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005708/0.9216, allocations: 74.09 kB / 1.103 GB, free: 11.43 MB / 0.8731 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.0001553/0.9218, allocations: 119.2 kB / 1.103 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000579/0.9224, allocations: 311.1 kB / 1.103 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.9224, allocations: 0 / 1.103 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.9225, allocations: 82.72 kB / 1.104 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.923, allocations: 35.73 kB / 1.104 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009813/0.924, allocations: 0.4903 MB / 1.104 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.9244, allocations: 0.7458 MB / 1.105 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.314e-05/0.9245, allocations: 24.2 kB / 1.105 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of SimCode: time 4.71e-07/0.9245, allocations: 0 / 1.105 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of Templates: time 0.004907/0.9294, allocations: 2.363 MB / 1.107 GB, free: 9.914 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches