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.001484/0.001485, allocations: 112.6 kB / 16.37 MB, free: 5.949 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.001599/0.001599, allocations: 199 kB / 17.31 MB, free: 5.574 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.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.48/2.48, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 59.56 kB / 0.8773 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.323, allocations: 153 MB / 1.027 GB, free: 2.133 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003825/0.3269, allocations: 2.514 MB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001219/0.3281, allocations: 0.7866 MB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.647e-05/0.3282, allocations: 8 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.3293, allocations: 0.5255 MB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.3296, allocations: 103.5 kB / 1.031 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.3299, allocations: 115.7 kB / 1.031 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.3301, allocations: 195.4 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003377/0.3305, allocations: 166.9 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.439e-05/0.3306, allocations: 83.75 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.3308, allocations: 99.58 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.3308, allocations: 12 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.331, allocations: 107.8 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.123e-05/0.3311, allocations: 55.88 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.757e-05/0.3312, allocations: 71.67 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002638/0.3314, allocations: 219.3 kB / 1.032 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3314, allocations: 7.938 kB / 1.032 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3314, allocations: 0 / 1.032 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.3315, allocations: 0 / 1.032 GB, free: 13.06 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.0005576/0.332, allocations: 455.2 kB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3321, allocations: 12.03 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.3324, allocations: 44.7 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.3327, allocations: 216.1 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.3327, allocations: 8.656 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.3328, allocations: 12.38 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.3331, allocations: 231.9 kB / 1.033 GB, free: 12 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.3331, allocations: 3.938 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.3331, allocations: 4 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.769e-05/0.3332, allocations: 16.27 kB / 1.033 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.3334, allocations: 144.7 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.3345, allocations: 1.13 MB / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.208e-05/0.3346, allocations: 38.56 kB / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.31e-05/0.3346, allocations: 20.86 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.3347, allocations: 3.984 kB / 1.034 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.3347, allocations: 30.56 kB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.3347, allocations: 0 / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0001832/0.3349, allocations: 85.55 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.3349, allocations: 51.41 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.3351, allocations: 176.5 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.3351, allocations: 25.7 kB / 1.034 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.113e-05/0.3352, allocations: 147.3 kB / 1.034 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.3352, allocations: 11.84 kB / 1.034 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.3352, allocations: 37.61 kB / 1.034 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3354, allocations: 318.8 kB / 1.035 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.673e-05/0.3354, allocations: 24.84 kB / 1.035 GB, free: 9.539 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.267e-05/0.3355, allocations: 97.3 kB / 1.035 GB, free: 9.41 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.3357, allocations: 125.2 kB / 1.035 GB, free: 9.254 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3357, allocations: 0 / 1.035 GB, free: 9.254 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001944/0.3359, allocations: 137.3 kB / 1.035 GB, free: 9.113 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.3359, allocations: 8 kB / 1.035 GB, free: 9.105 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3359, allocations: 4 kB / 1.035 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3359, allocations: 3.938 kB / 1.035 GB, free: 9.098 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.336, allocations: 23.98 kB / 1.035 GB, free: 9.074 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.336, allocations: 7.938 kB / 1.035 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.262e-05/0.3361, allocations: 19.84 kB / 1.035 GB, free: 9.047 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.3361, allocations: 4.312 kB / 1.035 GB, free: 9.043 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001022/0.3362, allocations: 124.1 kB / 1.035 GB, free: 8.918 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.915e-05/0.3363, allocations: 85.44 kB / 1.035 GB, free: 8.801 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001233/0.3364, allocations: 125.3 kB / 1.036 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.615e-06/0.3365, allocations: 0 / 1.036 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001742/0.3366, allocations: 129.3 kB / 1.036 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.3367, allocations: 8 kB / 1.036 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.3367, allocations: 3.984 kB / 1.036 GB, free: 8.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.837e-06/0.3367, allocations: 4.312 kB / 1.036 GB, free: 8.496 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.073e-05/0.3368, allocations: 31.94 kB / 1.036 GB, free: 8.465 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.3368, allocations: 7.938 kB / 1.036 GB, free: 8.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.026e-05/0.3368, allocations: 11.91 kB / 1.036 GB, free: 8.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.3368, allocations: 7.984 kB / 1.036 GB, free: 8.438 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 9.19e-05/0.3369, allocations: 196.1 kB / 1.036 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/0.337, allocations: 7.906 kB / 1.036 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.337, allocations: 12.94 kB / 1.036 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.337, allocations: 3.938 kB / 1.036 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.337, allocations: 0 / 1.036 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.337, allocations: 8 kB / 1.036 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004094/0.3375, allocations: 477 kB / 1.036 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3375, allocations: 7.922 kB / 1.036 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.3375, allocations: 8 kB / 1.036 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3375, allocations: 0 / 1.036 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.3375, allocations: 4.125 kB / 1.036 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.3375, allocations: 4 kB / 1.036 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3375, allocations: 0 / 1.036 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.3377, allocations: 115.8 kB / 1.037 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.3377, allocations: 93 kB / 1.037 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.3378, allocations: 8 kB / 1.037 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.46e-05/0.3378, allocations: 0 / 1.037 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.3378, allocations: 3.984 kB / 1.037 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.3378, allocations: 4 kB / 1.037 GB, free: 7.379 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.708e-05/0.3379, allocations: 124 kB / 1.037 GB, free: 7.258 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3379, allocations: 3.938 kB / 1.037 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003454/0.3383, allocations: 55.75 kB / 1.037 GB, free: 7.199 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 9.127e-05/0.3384, allocations: 99.25 kB / 1.037 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001926/0.3386, allocations: 115.6 kB / 1.037 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3386, allocations: 0 / 1.037 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.429e-05/0.3386, allocations: 17.17 kB / 1.037 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.3389, allocations: 23.98 kB / 1.037 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004453/0.3393, allocations: 271.5 kB / 1.037 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.3397, allocations: 0.7241 MB / 1.038 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.649e-05/0.3397, allocations: 32.56 kB / 1.038 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.804e-05/0.3398, allocations: 11.44 kB / 1.038 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3398, allocations: 0 / 1.038 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of Templates: time 0.002935/0.3427, allocations: 0.8573 MB / 1.039 GB, free: 5 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 gbode -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