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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001104/0.001104, allocations: 100.9 kB / 15.05 MB, free: 1.105 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.001269/0.001269, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.696/2.696, allocations: 436.5 MB / 0.7104 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004261, allocations: 8 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8406/0.8411, allocations: 153.7 MB / 1.021 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.002904/0.844, allocations: 2.209 MB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001993/0.846, allocations: 1.361 MB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.993e-05/0.8461, allocations: 3.938 kB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.8463, allocations: 23.84 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003706/0.8467, allocations: 123.5 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.847, allocations: 119.7 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.8472, allocations: 123.7 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006366/0.8479, allocations: 314.4 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.848, allocations: 67.77 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.8482, allocations: 75.73 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.8483, allocations: 8 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.8485, allocations: 115.8 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.499e-05/0.8486, allocations: 63.86 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.103e-05/0.8486, allocations: 53.58 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.8489, allocations: 241.4 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.849, allocations: 0 / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.623e-06/0.849, allocations: 0 / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.849, allocations: 0 / 1.026 GB, free: 12.2 MB / 0.7794 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.0006906/0.8497, allocations: 464.9 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.8497, allocations: 11.98 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006251/0.8504, allocations: 87.7 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.8506, allocations: 222.8 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.8507, allocations: 16.28 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.8507, allocations: 12 kB / 1.026 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004674/0.8512, allocations: 327.8 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.8512, allocations: 7.922 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.8513, allocations: 11.94 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.002e-05/0.8513, allocations: 16.28 kB / 1.027 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003653/0.8517, allocations: 248.6 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.8534, allocations: 1.638 MB / 1.029 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.854, allocations: 415.1 kB / 1.029 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.8541, allocations: 89.09 kB / 1.029 GB, free: 8.324 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.8542, allocations: 34.56 kB / 1.029 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.472e-06/0.8542, allocations: 0 / 1.029 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0005798/0.8548, allocations: 312.6 kB / 1.029 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.8548, allocations: 85.23 kB / 1.029 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.855, allocations: 179.2 kB / 1.03 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.855, allocations: 25.7 kB / 1.03 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.602e-05/0.8551, allocations: 151.8 kB / 1.03 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.8551, allocations: 43.36 kB / 1.03 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/0.8551, allocations: 8 kB / 1.03 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.8553, allocations: 322.8 kB / 1.03 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.8554, allocations: 71.95 kB / 1.03 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.8556, allocations: 149.4 kB / 1.03 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.8557, allocations: 103.9 kB / 1.03 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.8557, allocations: 4 kB / 1.03 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003844/0.8561, allocations: 262.7 kB / 1.031 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004686/0.8566, allocations: 0.964 MB / 1.032 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.8566, allocations: 4 kB / 1.032 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.8566, allocations: 4 kB / 1.032 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.8569, allocations: 55.89 kB / 1.032 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.8569, allocations: 7.953 kB / 1.032 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.857, allocations: 19.92 kB / 1.032 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.857, allocations: 11.98 kB / 1.032 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.196e-06/0.8571, allocations: 4 kB / 1.032 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003095/0.8574, allocations: 217.9 kB / 1.032 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.8574, allocations: 4 kB / 1.032 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.599e-06/0.8574, allocations: 4 kB / 1.032 GB, free: 5.145 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.8576, allocations: 47.91 kB / 1.032 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.8576, allocations: 4 kB / 1.032 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.8577, allocations: 23.83 kB / 1.032 GB, free: 5.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.8577, allocations: 8.312 kB / 1.032 GB, free: 5.062 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.8579, allocations: 236.9 kB / 1.032 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.9e-05/0.8579, allocations: 7.906 kB / 1.032 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003402/0.8583, allocations: 203.7 kB / 1.032 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.8583, allocations: 192 / 1.032 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.8583, allocations: 4 kB / 1.032 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.8583, allocations: 3.938 kB / 1.032 GB, free: 4.598 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.8595, allocations: 0.9613 MB / 1.033 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.8595, allocations: 4 kB / 1.033 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.8597, allocations: 35.92 kB / 1.033 GB, free: 3.484 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.8597, allocations: 4 kB / 1.033 GB, free: 3.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.8597, allocations: 11.98 kB / 1.033 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.57e-05/0.8597, allocations: 7.953 kB / 1.033 GB, free: 3.461 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8597, allocations: 4.438 kB / 1.033 GB, free: 3.457 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004905/0.8602, allocations: 0.581 MB / 1.034 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.88e-05/0.8603, allocations: 116.9 kB / 1.034 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.8604, allocations: 12 kB / 1.034 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.8605, allocations: 7.984 kB / 1.034 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.8606, allocations: 15.98 kB / 1.034 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.8606, allocations: 8 kB / 1.034 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001146/0.8607, allocations: 135.2 kB / 1.034 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8607, allocations: 0 / 1.034 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000493/0.8612, allocations: 76 kB / 1.034 GB, free: 2.359 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001678/0.8614, allocations: 107.2 kB / 1.034 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004372/0.8618, allocations: 292.7 kB / 1.035 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.8619, allocations: 8.125 kB / 1.035 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.862, allocations: 79.83 kB / 1.035 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.8623, allocations: 24.72 kB / 1.035 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007889/0.8631, allocations: 0.57 MB / 1.035 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.8635, allocations: 0.7519 MB / 1.036 GB, free: 448 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000205/0.8637, allocations: 81.5 kB / 1.036 GB, free: 368 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.969e-05/0.8637, allocations: 19.42 kB / 1.036 GB, free: 348 kB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.8637, allocations: 0 / 1.036 GB, free: 348 kB / 0.7794 GB Notification: Performance of Templates: time 0.004311/0.8681, allocations: 1.665 MB / 1.038 GB, free: 14.7 MB / 0.795 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","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches