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.00887/0.00887, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.002188/0.002188, allocations: 199 kB / 16.79 MB, free: 6.254 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.442/1.442, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.763/2.763, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 60.05 kB / 0.899 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3101, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004756/0.3149, allocations: 2.553 MB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.3165, allocations: 0.7829 MB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.3167, allocations: 4 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.318, allocations: 0.5182 MB / 1.057 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003467/0.3184, allocations: 95.61 kB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003727/0.3188, allocations: 98.56 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003871/0.3192, allocations: 299.3 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002895/0.3195, allocations: 114.2 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.3196, allocations: 67.7 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/0.3199, allocations: 95.7 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.3199, allocations: 8 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002789/0.3202, allocations: 143.6 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.794e-05/0.3203, allocations: 51.83 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.3204, allocations: 67.67 kB / 1.058 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.3207, allocations: 175.9 kB / 1.058 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3207, allocations: 0 / 1.058 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3207, allocations: 4 kB / 1.058 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.842e-06/0.3207, allocations: 0 / 1.058 GB, free: 3.211 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.000689/0.3214, allocations: 448.6 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.3215, allocations: 8.031 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.3219, allocations: 44.72 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.3221, allocations: 220.1 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.3222, allocations: 8.656 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.3222, allocations: 16.38 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000398/0.3226, allocations: 227.2 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.3226, allocations: 0 / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.3227, allocations: 7.984 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-05/0.3227, allocations: 20.27 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.323, allocations: 144.7 kB / 1.059 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.3244, allocations: 1.134 MB / 1.06 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.783e-05/0.3245, allocations: 46.5 kB / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.721e-05/0.3245, allocations: 16.86 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.3246, allocations: 0 / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.3246, allocations: 38.62 kB / 1.06 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.3246, allocations: 4 kB / 1.06 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0002247/0.3248, allocations: 77.53 kB / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.3249, allocations: 51.41 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.3251, allocations: 175.7 kB / 1.06 GB, free: 272 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.3251, allocations: 25.7 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.558e-05/0.3252, allocations: 143.3 kB / 1.06 GB, free: 92 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.3252, allocations: 19.78 kB / 1.06 GB, free: 72 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.801e-05/0.3253, allocations: 33.61 kB / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3254, allocations: 322.8 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.724e-05/0.3255, allocations: 28.84 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.663e-05/0.3255, allocations: 85.42 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.3257, allocations: 125.3 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3257, allocations: 0 / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001955/0.3259, allocations: 133.3 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3259, allocations: 4.312 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.326, allocations: 8 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.326, allocations: 11.88 kB / 1.061 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3261, allocations: 27.92 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.3261, allocations: 4 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.109e-05/0.3262, allocations: 15.84 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.3262, allocations: 12 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.498e-05/0.3263, allocations: 120.1 kB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.735e-05/0.3264, allocations: 93.36 kB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001206/0.3265, allocations: 121.3 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.502e-06/0.3266, allocations: 4 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002031/0.3268, allocations: 133.3 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.3268, allocations: 7.984 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.3268, allocations: 4 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.789e-06/0.3268, allocations: 4 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.353e-05/0.3269, allocations: 20 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.3269, allocations: 7.875 kB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.686e-05/0.327, allocations: 15.89 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-06/0.327, allocations: 8.312 kB / 1.062 GB, free: 14.58 MB / 0.8262 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.866e-05/0.3271, allocations: 192.2 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.3271, allocations: 7.906 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.118e-05/0.3272, allocations: 12.94 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3272, allocations: 3.938 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3272, allocations: 0 / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3272, allocations: 0 / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004619/0.3276, allocations: 473 kB / 1.062 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.3277, allocations: 7.984 kB / 1.062 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.657e-05/0.3277, allocations: 8 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.3277, allocations: 0 / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.3277, allocations: 4 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3277, allocations: 0 / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3277, allocations: 7.938 kB / 1.062 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.3279, allocations: 111.9 kB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.626e-05/0.3279, allocations: 93.05 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.328, allocations: 3.938 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.524e-05/0.328, allocations: 3.938 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.328, allocations: 11.98 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.328, allocations: 4 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.912e-05/0.3281, allocations: 124 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3282, allocations: 3.938 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003611/0.3285, allocations: 55.75 kB / 1.063 GB, free: 13.35 MB / 0.8262 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.0001018/0.3286, allocations: 95.25 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002249/0.3289, allocations: 112.4 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3289, allocations: 0 / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.163e-05/0.3289, allocations: 23.92 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.3292, allocations: 15.98 kB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005618/0.3298, allocations: 361.6 kB / 1.063 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.3301, allocations: 0.7241 MB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.194e-05/0.3301, allocations: 11.44 kB / 1.064 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3301, allocations: 0 / 1.064 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of Templates: time 0.003189/0.3333, allocations: 1.445 MB / 1.066 GB, free: 10.5 MB / 0.8262 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 -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