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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001559/0.001559, allocations: 100.1 kB / 15.88 MB, free: 12 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.002032/0.002032, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.578/1.578, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.573/2.573, allocations: 437 MB / 0.7106 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 67.89 kB / 0.8692 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6138/0.6152, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00489/0.6202, allocations: 2.563 MB / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001564/0.6218, allocations: 0.7712 MB / 1.021 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.622, allocations: 8 kB / 1.021 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.6233, allocations: 0.5142 MB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000336/0.6237, allocations: 107.6 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.624, allocations: 95.83 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003913/0.6244, allocations: 299.2 kB / 1.022 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002899/0.6247, allocations: 102.2 kB / 1.022 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.6249, allocations: 71.7 kB / 1.022 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.6252, allocations: 95.72 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.6252, allocations: 8 kB / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000309/0.6255, allocations: 143.7 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.697e-05/0.6256, allocations: 51.89 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.6257, allocations: 75.53 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002948/0.626, allocations: 173.6 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.6261, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6261, allocations: 4 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.272e-05/0.6261, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 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.0007671/0.6269, allocations: 443.4 kB / 1.023 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.6269, allocations: 8.031 kB / 1.023 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004227/0.6273, allocations: 48.7 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.6276, allocations: 216.1 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.6276, allocations: 8.656 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.6277, allocations: 20.36 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.6281, allocations: 231.2 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.6281, allocations: 0 / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.6281, allocations: 8 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-05/0.6282, allocations: 16.28 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.6284, allocations: 144.7 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.6296, allocations: 1.13 MB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.581e-05/0.6297, allocations: 46.55 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.498e-05/0.6298, allocations: 20.86 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.6298, allocations: 0 / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.6298, allocations: 34.5 kB / 1.025 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.6298, allocations: 0 / 1.025 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002213/0.6301, allocations: 81.61 kB / 1.025 GB, free: 11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.6301, allocations: 51.41 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.6303, allocations: 169.4 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.6303, allocations: 33.62 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.6304, allocations: 147.3 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.6304, allocations: 15.89 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.6305, allocations: 29.62 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6306, allocations: 322.8 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.136e-05/0.6307, allocations: 24.84 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.865e-05/0.6308, allocations: 94.5 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.6309, allocations: 125.3 kB / 1.026 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.631, allocations: 0 / 1.026 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002332/0.6312, allocations: 137.3 kB / 1.026 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.6312, allocations: 4 kB / 1.026 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.6312, allocations: 4 kB / 1.026 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.6312, allocations: 7.938 kB / 1.026 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.6314, allocations: 31.92 kB / 1.026 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.6314, allocations: 4 kB / 1.026 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.238e-05/0.6315, allocations: 15.78 kB / 1.026 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.6315, allocations: 8.312 kB / 1.026 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001078/0.6316, allocations: 128.1 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.466e-05/0.6317, allocations: 81.44 kB / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001352/0.6318, allocations: 125.2 kB / 1.026 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.345e-06/0.6318, allocations: 7.938 kB / 1.026 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001958/0.632, allocations: 129.4 kB / 1.026 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.6321, allocations: 5.562 kB / 1.026 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.6321, allocations: 4 kB / 1.026 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.24e-06/0.6321, allocations: 8.25 kB / 1.026 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.556e-05/0.6322, allocations: 27.98 kB / 1.026 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.6322, allocations: 3.938 kB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.808e-05/0.6323, allocations: 7.906 kB / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.6323, allocations: 8 kB / 1.026 GB, free: 9.074 MB / 0.7794 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.986e-05/0.6324, allocations: 188.2 kB / 1.026 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.28e-05/0.6324, allocations: 7.906 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.348e-05/0.6325, allocations: 16.92 kB / 1.026 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.6325, allocations: 3.938 kB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.6325, allocations: 0 / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.6325, allocations: 4.281 kB / 1.026 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004508/0.6329, allocations: 476.9 kB / 1.027 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.633, allocations: 8 kB / 1.027 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.254e-05/0.633, allocations: 4 kB / 1.027 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.633, allocations: 3.984 kB / 1.027 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.633, allocations: 12.11 kB / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.633, allocations: 0 / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.633, allocations: 4 kB / 1.027 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.6332, allocations: 115.4 kB / 1.027 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/0.6333, allocations: 93 kB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.6333, allocations: 4 kB / 1.027 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.473e-05/0.6333, allocations: 0 / 1.027 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.25e-05/0.6333, allocations: 4 kB / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.6334, allocations: 0 / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001135/0.6335, allocations: 137.6 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6335, allocations: 0 / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003615/0.6338, allocations: 55.75 kB / 1.027 GB, free: 7.84 MB / 0.7794 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.000113/0.634, allocations: 99.25 kB / 1.027 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002261/0.6342, allocations: 111.6 kB / 1.028 GB, free: 7.625 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6342, allocations: 0 / 1.028 GB, free: 7.625 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.891e-05/0.6342, allocations: 21.19 kB / 1.028 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.6345, allocations: 18.52 kB / 1.028 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.6351, allocations: 357.1 kB / 1.028 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.6355, allocations: 0.728 MB / 1.029 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.6355, allocations: 11.44 kB / 1.029 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6355, allocations: 0 / 1.029 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of Templates: time 0.003399/0.6389, allocations: 1.448 MB / 1.03 GB, free: 4.984 MB / 0.7794 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