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.001661/0.001661, allocations: 108 kB / 15.6 MB, free: 132 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.002077/0.002077, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.74/2.74, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 64.09 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7801/0.7817, allocations: 151.6 MB / 1.017 GB, free: 2.613 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003929/0.7857, allocations: 2.513 MB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001255/0.787, allocations: 0.7751 MB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.355e-05/0.7871, allocations: 4 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.7882, allocations: 0.5375 MB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002415/0.7885, allocations: 103.5 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.7887, allocations: 111.7 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002232/0.789, allocations: 187.5 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003284/0.7893, allocations: 170.1 kB / 1.022 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.658e-05/0.7894, allocations: 79.69 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.7896, allocations: 99.64 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.7896, allocations: 16 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.7898, allocations: 107.8 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.154e-05/0.7899, allocations: 51.89 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.25e-05/0.79, allocations: 71.61 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.7903, allocations: 225.2 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7903, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.322e-06/0.7903, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.7903, allocations: 0 / 1.022 GB, free: 13.56 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.0005605/0.7909, allocations: 447.2 kB / 1.023 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.7909, allocations: 12.03 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003595/0.7913, allocations: 44.8 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/0.7915, allocations: 212.1 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.7915, allocations: 8.656 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.7915, allocations: 12.38 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.7919, allocations: 235.2 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.7919, allocations: 7.984 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.7919, allocations: 7.938 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/0.7919, allocations: 16.28 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.7922, allocations: 148.7 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009879/0.7932, allocations: 1.127 MB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.365e-05/0.7933, allocations: 42.56 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.284e-05/0.7933, allocations: 16.8 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.7933, allocations: 4 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.7934, allocations: 34.56 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 2.555e-06/0.7934, allocations: 0 / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002058/0.7936, allocations: 85.45 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.7936, allocations: 51.41 kB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.7938, allocations: 170.1 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.7938, allocations: 29.7 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.69e-05/0.7939, allocations: 139.4 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.7939, allocations: 19.8 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/0.794, allocations: 33.62 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.7941, allocations: 322.8 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.968e-05/0.7942, allocations: 24.78 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.93e-05/0.7943, allocations: 97.44 kB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.7945, allocations: 117.3 kB / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.7945, allocations: 4 kB / 1.026 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002002/0.7947, allocations: 141.4 kB / 1.026 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.7947, allocations: 4 kB / 1.026 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.7947, allocations: 8 kB / 1.026 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.7947, allocations: 7.938 kB / 1.026 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.7949, allocations: 27.92 kB / 1.026 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.7949, allocations: 4 kB / 1.026 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.868e-05/0.7949, allocations: 15.78 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.795, allocations: 4 kB / 1.026 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.614e-05/0.7951, allocations: 124.4 kB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.532e-05/0.7952, allocations: 93.44 kB / 1.026 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001325/0.7953, allocations: 121.2 kB / 1.026 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.363e-06/0.7953, allocations: 4 kB / 1.026 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001784/0.7955, allocations: 133.6 kB / 1.026 GB, free: 9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.7955, allocations: 9.719 kB / 1.026 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/0.7955, allocations: 3.984 kB / 1.026 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.887e-06/0.7955, allocations: 4 kB / 1.026 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.348e-05/0.7956, allocations: 24.3 kB / 1.026 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.7956, allocations: 15.88 kB / 1.026 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.803e-05/0.7957, allocations: 11.84 kB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.7957, allocations: 12 kB / 1.026 GB, free: 8.922 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 7.804e-05/0.7958, allocations: 176.9 kB / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.101e-05/0.7958, allocations: 15.84 kB / 1.026 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.7959, allocations: 16.92 kB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.7959, allocations: 7.938 kB / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.7959, allocations: 0 / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.7959, allocations: 0 / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004309/0.7963, allocations: 480.9 kB / 1.027 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7964, allocations: 0 / 1.027 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.317e-05/0.7964, allocations: 8 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.7964, allocations: 3.984 kB / 1.027 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.7964, allocations: 4 kB / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.7964, allocations: 128 / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.7964, allocations: 4 kB / 1.027 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.7966, allocations: 115.5 kB / 1.027 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.7966, allocations: 89 kB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.7966, allocations: 4 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.381e-05/0.7967, allocations: 4 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.938e-05/0.7967, allocations: 4 kB / 1.027 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.7967, allocations: 4 kB / 1.027 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.877e-05/0.7968, allocations: 129.3 kB / 1.027 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7968, allocations: 0 / 1.027 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003459/0.7972, allocations: 51.84 kB / 1.027 GB, free: 7.707 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 8.875e-05/0.7973, allocations: 99.19 kB / 1.027 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001956/0.7975, allocations: 111.7 kB / 1.028 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.7975, allocations: 0 / 1.028 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.63e-05/0.7975, allocations: 21.31 kB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.7978, allocations: 21.36 kB / 1.028 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004747/0.7983, allocations: 283.2 kB / 1.028 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.7986, allocations: 0.7202 MB / 1.029 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.58e-05/0.7987, allocations: 28.62 kB / 1.029 GB, free: 6.363 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.7987, allocations: 11.44 kB / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.7987, allocations: 0 / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of Templates: time 0.003003/0.8017, allocations: 0.8609 MB / 1.029 GB, free: 5.5 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/jenkins/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