Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.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.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001351/0.001351, allocations: 191 kB / 17.29 MB, free: 5.516 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.477/1.477, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.544/2.544, allocations: 442.6 MB / 0.7165 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 63.81 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3264, allocations: 153 MB / 1.027 GB, free: 2.012 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004324/0.3308, allocations: 2.51 MB / 1.029 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001282/0.3321, allocations: 0.7866 MB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.942e-05/0.3322, allocations: 4 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.3335, allocations: 0.5297 MB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002799/0.3338, allocations: 111.5 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.3341, allocations: 103.7 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.3344, allocations: 195.4 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.3347, allocations: 162.1 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.978e-05/0.3348, allocations: 83.73 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.335, allocations: 91.66 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.3351, allocations: 12 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.3353, allocations: 115.8 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.691e-05/0.3354, allocations: 55.83 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.083e-05/0.3354, allocations: 67.67 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.3358, allocations: 223.3 kB / 1.032 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3358, allocations: 0 / 1.032 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3358, allocations: 4 kB / 1.032 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.3358, allocations: 0 / 1.032 GB, free: 12.95 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006579/0.3365, allocations: 455.2 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.3365, allocations: 12.03 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.3369, allocations: 44.66 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.3372, allocations: 216.1 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.3372, allocations: 12.59 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.3373, allocations: 24.36 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.3377, allocations: 227.8 kB / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3377, allocations: 0 / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.3377, allocations: 8 kB / 1.033 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-05/0.3378, allocations: 16.27 kB / 1.033 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.338, allocations: 144.7 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.3392, allocations: 1.127 MB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.158e-05/0.3393, allocations: 46.5 kB / 1.034 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.855e-05/0.3394, allocations: 20.94 kB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.3394, allocations: 0 / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.3394, allocations: 34.56 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.3394, allocations: 0 / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0002436/0.3397, allocations: 77.52 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.3397, allocations: 55.34 kB / 1.034 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.3399, allocations: 176.5 kB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.34, allocations: 25.7 kB / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.3401, allocations: 147.3 kB / 1.034 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.694e-05/0.3401, allocations: 11.83 kB / 1.034 GB, free: 9.809 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.327e-05/0.3402, allocations: 33.62 kB / 1.034 GB, free: 9.77 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3403, allocations: 322.8 kB / 1.035 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.532e-05/0.3404, allocations: 24.84 kB / 1.035 GB, free: 9.418 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.3405, allocations: 89.44 kB / 1.035 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.3407, allocations: 121.2 kB / 1.035 GB, free: 9.145 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3407, allocations: 4 kB / 1.035 GB, free: 9.141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001992/0.3409, allocations: 133.4 kB / 1.035 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.3409, allocations: 6.812 kB / 1.035 GB, free: 9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3409, allocations: 4 kB / 1.035 GB, free: 8.996 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3409, allocations: 11.92 kB / 1.035 GB, free: 8.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.3411, allocations: 23.94 kB / 1.035 GB, free: 8.961 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3411, allocations: 320 / 1.035 GB, free: 8.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.3412, allocations: 31.83 kB / 1.035 GB, free: 8.93 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.3412, allocations: 7.938 kB / 1.035 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001031/0.3413, allocations: 116.1 kB / 1.035 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.627e-05/0.3414, allocations: 97.36 kB / 1.035 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001246/0.3415, allocations: 117.3 kB / 1.035 GB, free: 8.527 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.182e-06/0.3415, allocations: 3.938 kB / 1.035 GB, free: 8.523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001881/0.3417, allocations: 137.6 kB / 1.036 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.887e-06/0.3417, allocations: 8 kB / 1.036 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-06/0.3417, allocations: 4.312 kB / 1.036 GB, free: 8.371 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.817e-06/0.3417, allocations: 4 kB / 1.036 GB, free: 8.367 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.246e-05/0.3418, allocations: 23.98 kB / 1.036 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.3418, allocations: 11.88 kB / 1.036 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.751e-05/0.3419, allocations: 11.91 kB / 1.036 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.3419, allocations: 8 kB / 1.036 GB, free: 8.312 MB / 0.8106 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 (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 prepare postOptimizeDAE: time 0.0001148/0.342, allocations: 188.1 kB / 1.036 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.342, allocations: 11.91 kB / 1.036 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.276e-05/0.3421, allocations: 12.92 kB / 1.036 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3421, allocations: 11.94 kB / 1.036 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3421, allocations: 3.938 kB / 1.036 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3421, allocations: 0 / 1.036 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004377/0.3425, allocations: 473 kB / 1.036 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3426, allocations: 0 / 1.036 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.121e-05/0.3426, allocations: 8.125 kB / 1.036 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3426, allocations: 4 kB / 1.036 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.3426, allocations: 4 kB / 1.036 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3426, allocations: 3.938 kB / 1.036 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3426, allocations: 0 / 1.036 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001368/0.3428, allocations: 115.5 kB / 1.036 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.3428, allocations: 93 kB / 1.037 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.3429, allocations: 4 kB / 1.037 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.356e-05/0.3429, allocations: 0 / 1.037 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.3429, allocations: 4 kB / 1.037 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.3429, allocations: 3.938 kB / 1.037 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001026/0.343, allocations: 124 kB / 1.037 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3431, allocations: 7.938 kB / 1.037 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003447/0.3434, allocations: 55.75 kB / 1.037 GB, free: 7.082 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.0001121/0.3435, allocations: 103.2 kB / 1.037 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002045/0.3437, allocations: 111.6 kB / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3437, allocations: 1.25 kB / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.544e-05/0.3438, allocations: 12.19 kB / 1.037 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.3441, allocations: 24.05 kB / 1.037 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005411/0.3446, allocations: 275.1 kB / 1.037 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.345, allocations: 0.7241 MB / 1.038 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.221e-05/0.345, allocations: 28.61 kB / 1.038 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.205e-05/0.3451, allocations: 11.44 kB / 1.038 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3451, allocations: 3.938 kB / 1.038 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of Templates: time 0.003247/0.3483, allocations: 0.8557 MB / 1.039 GB, free: 4.887 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches