Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_10_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_10_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.001494/0.001494, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001646/0.001646, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.479/1.479, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.56/2.56, allocations: 437 MB / 0.711 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 60.56 kB / 0.8699 GB, free: 2.258 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3212, allocations: 151.6 MB / 1.018 GB, free: 10.69 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004631/0.3259, allocations: 2.509 MB / 1.02 GB, free: 8.164 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.3274, allocations: 0.7789 MB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.3276, allocations: 3.938 kB / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.329, allocations: 0.5298 MB / 1.022 GB, free: 6.844 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003485/0.3294, allocations: 99.53 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.3297, allocations: 111.7 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002945/0.33, allocations: 199.4 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.3304, allocations: 164.2 kB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.3306, allocations: 83.69 kB / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.3308, allocations: 87.72 kB / 1.022 GB, free: 6.109 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.038e-05/0.3308, allocations: 16 kB / 1.022 GB, free: 6.094 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002573/0.3311, allocations: 115.7 kB / 1.023 GB, free: 5.98 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.803e-05/0.3312, allocations: 59.81 kB / 1.023 GB, free: 5.922 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.64e-05/0.3313, allocations: 71.61 kB / 1.023 GB, free: 5.852 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003159/0.3316, allocations: 219.6 kB / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3316, allocations: 0 / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3316, allocations: 0 / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.675e-06/0.3316, allocations: 0 / 1.023 GB, free: 5.637 MB / 0.795 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.0007191/0.3324, allocations: 451.3 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3324, allocations: 16.92 kB / 1.023 GB, free: 5.129 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004327/0.3329, allocations: 40.72 kB / 1.023 GB, free: 5.09 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.3331, allocations: 216.1 kB / 1.024 GB, free: 4.84 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.3332, allocations: 12.66 kB / 1.024 GB, free: 4.828 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.3332, allocations: 8.375 kB / 1.024 GB, free: 4.82 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003634/0.3336, allocations: 232.8 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3336, allocations: 4 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.3336, allocations: 11.97 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.413e-05/0.3336, allocations: 16.27 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.3339, allocations: 144.7 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.335, allocations: 1.13 MB / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 9.31e-05/0.3351, allocations: 42.5 kB / 1.025 GB, free: 3.086 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.736e-05/0.3352, allocations: 20.8 kB / 1.025 GB, free: 3.062 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.3352, allocations: 4 kB / 1.025 GB, free: 3.059 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3352, allocations: 30.56 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 1.704e-06/0.3352, allocations: 0 / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0002368/0.3355, allocations: 81.61 kB / 1.025 GB, free: 2.934 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.3355, allocations: 55.34 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.3357, allocations: 176 kB / 1.025 GB, free: 2.688 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.3357, allocations: 25.7 kB / 1.025 GB, free: 2.656 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.551e-05/0.3358, allocations: 143.3 kB / 1.026 GB, free: 2.512 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.357e-05/0.3358, allocations: 15.84 kB / 1.026 GB, free: 2.496 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.3359, allocations: 33.62 kB / 1.026 GB, free: 2.457 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.336, allocations: 318.8 kB / 1.026 GB, free: 2.137 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.399e-05/0.3361, allocations: 28.84 kB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.828e-05/0.3362, allocations: 90.17 kB / 1.026 GB, free: 1.984 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.3363, allocations: 125.2 kB / 1.026 GB, free: 1.828 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3363, allocations: 0 / 1.026 GB, free: 1.828 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002104/0.3365, allocations: 133.4 kB / 1.026 GB, free: 1.691 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3366, allocations: 8 kB / 1.026 GB, free: 1.684 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3366, allocations: 7.938 kB / 1.026 GB, free: 1.676 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3366, allocations: 3.938 kB / 1.026 GB, free: 1.672 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3367, allocations: 27.92 kB / 1.026 GB, free: 1.645 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.3367, allocations: 4 kB / 1.026 GB, free: 1.641 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.637e-05/0.3368, allocations: 19.84 kB / 1.026 GB, free: 1.621 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.3368, allocations: 4 kB / 1.026 GB, free: 1.617 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001014/0.3369, allocations: 124.4 kB / 1.027 GB, free: 1.492 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.27e-05/0.337, allocations: 95.62 kB / 1.027 GB, free: 1.367 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00012/0.3372, allocations: 117.3 kB / 1.027 GB, free: 1.219 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.403e-06/0.3372, allocations: 4 kB / 1.027 GB, free: 1.215 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001883/0.3374, allocations: 133.5 kB / 1.027 GB, free: 1.078 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.3374, allocations: 4 kB / 1.027 GB, free: 1.074 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-06/0.3374, allocations: 7.938 kB / 1.027 GB, free: 1.066 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.282e-06/0.3374, allocations: 8.031 kB / 1.027 GB, free: 1.059 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.662e-05/0.3375, allocations: 24.3 kB / 1.027 GB, free: 1.035 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.3375, allocations: 15.88 kB / 1.027 GB, free: 1.02 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.498e-05/0.3376, allocations: 15.91 kB / 1.027 GB, free: 1.004 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.3376, allocations: 4 kB / 1.027 GB, free: 1 MB / 0.795 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.009e-05/0.3377, allocations: 192.2 kB / 1.027 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.3377, allocations: 7.906 kB / 1.027 GB, free: 0.7969 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.3377, allocations: 12.94 kB / 1.027 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3378, allocations: 3.938 kB / 1.027 GB, free: 0.7812 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3378, allocations: 3.938 kB / 1.027 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3378, allocations: 4 kB / 1.027 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004393/0.3382, allocations: 473.1 kB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3382, allocations: 0 / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.66e-05/0.3383, allocations: 11.98 kB / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3383, allocations: 0 / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3383, allocations: 0 / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.3383, allocations: 8.062 kB / 1.028 GB, free: 228 kB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3383, allocations: 4 kB / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.3384, allocations: 107.5 kB / 1.028 GB, free: 88 kB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.903e-05/0.3385, allocations: 89 kB / 1.028 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.3385, allocations: 4 kB / 1.028 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.614e-05/0.3386, allocations: 8 kB / 1.028 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.095e-05/0.3386, allocations: 0 / 1.028 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.3386, allocations: 7.938 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.963e-05/0.3387, allocations: 123.9 kB / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3387, allocations: 0 / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003597/0.3391, allocations: 55.75 kB / 1.028 GB, free: 15.79 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.0001085/0.3392, allocations: 103.2 kB / 1.028 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000207/0.3394, allocations: 111.6 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.912e-06/0.3394, allocations: 3.938 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.483e-05/0.3395, allocations: 17.36 kB / 1.028 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.3397, allocations: 25.44 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005416/0.3403, allocations: 312.9 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.3406, allocations: 0.7202 MB / 1.029 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.146e-05/0.3406, allocations: 15.38 kB / 1.029 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3406, allocations: 0 / 1.029 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of Templates: time 0.003034/0.3437, allocations: 1.449 MB / 1.031 GB, free: 12.96 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches