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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001056/0.001056, allocations: 92.7 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 175.8 kB / 16.92 MB, free: 6.652 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.356/1.356, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.33/2.33, allocations: 390.9 MB / 0.667 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003588, allocations: 12 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7116/0.712, allocations: 142.4 MB / 0.9557 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.002846/0.7149, allocations: 2.325 MB / 0.958 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002136/0.7171, allocations: 1.45 MB / 0.9594 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.7172, allocations: 2.094 kB / 0.9594 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.7173, allocations: 28.28 kB / 0.9594 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004401/0.7178, allocations: 182.8 kB / 0.9596 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003255/0.7181, allocations: 145.6 kB / 0.9597 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.7185, allocations: 346 kB / 0.9601 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006061/0.7191, allocations: 329.9 kB / 0.9604 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.7193, allocations: 80.77 kB / 0.9605 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.7195, allocations: 115.7 kB / 0.9606 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.7195, allocations: 6.875 kB / 0.9606 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003672/0.7199, allocations: 271 kB / 0.9608 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.391e-05/0.72, allocations: 57.72 kB / 0.9609 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.38e-05/0.7201, allocations: 108.8 kB / 0.961 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.7204, allocations: 248.2 kB / 0.9612 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.7204, allocations: 0 / 0.9612 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.7204, allocations: 1.188 kB / 0.9612 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.7204, allocations: 0 / 0.9612 GB, free: 3.555 MB / 0.7169 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.0005982/0.721, allocations: 465.6 kB / 0.9617 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.7211, allocations: 9.781 kB / 0.9617 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006017/0.7217, allocations: 76.56 kB / 0.9618 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.7219, allocations: 228.5 kB / 0.962 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.7219, allocations: 11.95 kB / 0.962 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.722, allocations: 18.44 kB / 0.962 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.7225, allocations: 333.3 kB / 0.9623 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.7225, allocations: 0 / 0.9623 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.7225, allocations: 7.375 kB / 0.9623 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.272e-05/0.7226, allocations: 18.33 kB / 0.9624 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004073/0.723, allocations: 253.3 kB / 0.9626 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.7244, allocations: 1.645 MB / 0.9642 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006147/0.725, allocations: 408 kB / 0.9646 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.7251, allocations: 90.61 kB / 0.9647 GB, free: 456 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000127/0.7253, allocations: 87.19 kB / 0.9648 GB, free: 356 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.7253, allocations: 31.91 kB / 0.9648 GB, free: 316 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.142e-06/0.7253, allocations: 0 / 0.9648 GB, free: 316 kB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0006578/0.726, allocations: 313.5 kB / 0.9651 GB, free: 128 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.726, allocations: 78.3 kB / 0.9652 GB, free: 32 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.7262, allocations: 167.2 kB / 0.9653 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.7263, allocations: 33.69 kB / 0.9654 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.7264, allocations: 157.5 kB / 0.9655 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.426e-05/0.7264, allocations: 46.36 kB / 0.9656 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.7265, allocations: 24.16 kB / 0.9656 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.7266, allocations: 322.4 kB / 0.9659 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.7268, allocations: 94.78 kB / 0.966 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.727, allocations: 151.1 kB / 0.9661 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.7273, allocations: 242.6 kB / 0.9664 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.7273, allocations: 1.344 kB / 0.9664 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000434/0.7277, allocations: 267.8 kB / 0.9666 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.7279, allocations: 167.8 kB / 0.9668 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.7279, allocations: 6.031 kB / 0.9668 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.7279, allocations: 3.969 kB / 0.9668 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.7282, allocations: 54.7 kB / 0.9668 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.7282, allocations: 3.531 kB / 0.9668 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.7283, allocations: 24.8 kB / 0.9669 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.7284, allocations: 15.56 kB / 0.9669 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.7284, allocations: 4.219 kB / 0.9669 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003448/0.7287, allocations: 211.6 kB / 0.9671 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.7288, allocations: 2.562 kB / 0.9671 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.073e-06/0.7288, allocations: 7.641 kB / 0.9671 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.7289, allocations: 44.81 kB / 0.9671 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.729, allocations: 11.83 kB / 0.9671 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.7291, allocations: 18.08 kB / 0.9672 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.7291, allocations: 8.656 kB / 0.9672 GB, free: 14.45 MB / 0.7325 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.0001754/0.7293, allocations: 228.6 kB / 0.9674 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.887e-05/0.7293, allocations: 15.62 kB / 0.9674 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003824/0.7297, allocations: 193.6 kB / 0.9676 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.7297, allocations: 1.969 kB / 0.9676 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.7298, allocations: 5.094 kB / 0.9676 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.7298, allocations: 3.984 kB / 0.9676 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.7311, allocations: 0.9682 MB / 0.9685 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.7311, allocations: 3.125 kB / 0.9685 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.7312, allocations: 40.97 kB / 0.9686 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.7312, allocations: 4 kB / 0.9686 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.7313, allocations: 5.156 kB / 0.9686 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.7313, allocations: 7.875 kB / 0.9686 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.7313, allocations: 3.094 kB / 0.9686 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004212/0.7317, allocations: 442.9 kB / 0.969 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.7318, allocations: 114.3 kB / 0.9691 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.7319, allocations: 9.188 kB / 0.9691 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.732, allocations: 11.92 kB / 0.9692 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.831e-05/0.7321, allocations: 27.2 kB / 0.9692 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.7321, allocations: 6.781 kB / 0.9692 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001169/0.7322, allocations: 133.1 kB / 0.9693 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7322, allocations: 0 / 0.9693 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005196/0.7328, allocations: 70.66 kB / 0.9694 GB, free: 12.59 MB / 0.7325 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.0001626/0.7329, allocations: 121.2 kB / 0.9695 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005044/0.7334, allocations: 298.5 kB / 0.9698 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.7335, allocations: 1.062 kB / 0.9698 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.7336, allocations: 85.84 kB / 0.9699 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.7341, allocations: 38.22 kB / 0.9699 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009162/0.7351, allocations: 0.5921 MB / 0.9705 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.7354, allocations: 0.7483 MB / 0.9712 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.841e-05/0.7355, allocations: 22 kB / 0.9712 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.7355, allocations: 3.938 kB / 0.9712 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of Templates: time 0.004571/0.7401, allocations: 2.33 MB / 0.9735 GB, free: 9.844 MB / 0.7325 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