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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 108.6 kB / 15.73 MB, free: 72 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.002294/0.002295, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.732/2.732, allocations: 469.4 MB / 0.7421 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 72.09 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3276, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00402/0.3316, allocations: 2.507 MB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.333, allocations: 0.779 MB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.3332, allocations: 4 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.3344, allocations: 0.5219 MB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003203/0.3347, allocations: 115.5 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003203/0.3351, allocations: 99.8 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.3354, allocations: 199.3 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003556/0.3357, allocations: 174.1 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.3359, allocations: 79.75 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.3361, allocations: 91.66 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.3361, allocations: 12 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002147/0.3363, allocations: 115.8 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.624e-05/0.3364, allocations: 55.83 kB / 1.224 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.1e-05/0.3365, allocations: 71.66 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003302/0.3368, allocations: 219.2 kB / 1.225 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3369, allocations: 0 / 1.225 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.153e-06/0.3369, allocations: 4 kB / 1.225 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.395e-06/0.3369, allocations: 0 / 1.225 GB, free: 9.59 MB / 0.9825 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.0006747/0.3376, allocations: 455 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3376, allocations: 8.031 kB / 1.225 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.432e-05/0.3377, allocations: 50.73 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003804/0.3381, allocations: 44.81 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.3383, allocations: 228.1 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.3384, allocations: 8.656 kB / 1.225 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.3384, allocations: 8.375 kB / 1.225 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.3388, allocations: 238.9 kB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3388, allocations: 0 / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.3388, allocations: 7.984 kB / 1.226 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.267e-05/0.3388, allocations: 16.27 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002282/0.3391, allocations: 156.7 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.3402, allocations: 1.127 MB / 1.227 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.132e-05/0.3402, allocations: 38.56 kB / 1.227 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.341e-05/0.3403, allocations: 20.94 kB / 1.227 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.3403, allocations: 0 / 1.227 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.3403, allocations: 38.44 kB / 1.227 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.3403, allocations: 0 / 1.227 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0002009/0.3405, allocations: 77.58 kB / 1.227 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.3406, allocations: 59.39 kB / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.3408, allocations: 175 kB / 1.227 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.3408, allocations: 25.7 kB / 1.227 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.3409, allocations: 143.7 kB / 1.227 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.3409, allocations: 15.84 kB / 1.227 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.341, allocations: 37.66 kB / 1.227 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3411, allocations: 318.8 kB / 1.228 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.887e-05/0.3411, allocations: 32.84 kB / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.4e-05/0.3412, allocations: 85.38 kB / 1.228 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.3414, allocations: 125.3 kB / 1.228 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3414, allocations: 0 / 1.228 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002036/0.3416, allocations: 133.4 kB / 1.228 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3416, allocations: 8 kB / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.3417, allocations: 4 kB / 1.228 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3417, allocations: 3.938 kB / 1.228 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.3418, allocations: 24.3 kB / 1.228 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.3418, allocations: 11.94 kB / 1.228 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.3419, allocations: 19.89 kB / 1.228 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.3419, allocations: 4 kB / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.266e-05/0.342, allocations: 120.1 kB / 1.228 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.933e-05/0.3421, allocations: 99.73 kB / 1.228 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001218/0.3422, allocations: 125.2 kB / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.164e-06/0.3422, allocations: 0 / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001809/0.3424, allocations: 133.7 kB / 1.229 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.3424, allocations: 12.03 kB / 1.229 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-06/0.3424, allocations: 0 / 1.229 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.559e-06/0.3425, allocations: 4 kB / 1.229 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.469e-05/0.3425, allocations: 31.86 kB / 1.229 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.3425, allocations: 7.984 kB / 1.229 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.485e-05/0.3426, allocations: 8 kB / 1.229 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.3426, allocations: 4 kB / 1.229 GB, free: 4.883 MB / 0.9825 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 0.0001049/0.3427, allocations: 192.7 kB / 1.229 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.3428, allocations: 8.234 kB / 1.229 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.3428, allocations: 24.86 kB / 1.229 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3428, allocations: 3.984 kB / 1.229 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3428, allocations: 0 / 1.229 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.3428, allocations: 4 kB / 1.229 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004327/0.3433, allocations: 477 kB / 1.229 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3433, allocations: 4.125 kB / 1.229 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.288e-05/0.3433, allocations: 11.94 kB / 1.229 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3433, allocations: 0 / 1.229 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.3434, allocations: 0 / 1.229 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3434, allocations: 4 kB / 1.229 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3434, allocations: 0 / 1.229 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.3435, allocations: 123.5 kB / 1.23 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.935e-05/0.3436, allocations: 85.06 kB / 1.23 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/0.3436, allocations: 7.984 kB / 1.23 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.552e-05/0.3436, allocations: 4 kB / 1.23 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.3437, allocations: 0 / 1.23 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.3437, allocations: 4 kB / 1.23 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.054e-05/0.3438, allocations: 120 kB / 1.23 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3438, allocations: 0 / 1.23 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000348/0.3441, allocations: 55.89 kB / 1.23 GB, free: 3.652 MB / 0.9825 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.0003909/0.3445, allocations: 0.6538 MB / 1.23 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002022/0.3447, allocations: 115.7 kB / 1.231 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3447, allocations: 0 / 1.231 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.501e-05/0.3448, allocations: 17.23 kB / 1.231 GB, free: 2.828 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.345, allocations: 21.7 kB / 1.231 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.3469, allocations: 1.754 MB / 1.232 GB, free: 0.8945 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.3473, allocations: 0.7202 MB / 1.233 GB, free: 152 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.279e-05/0.3474, allocations: 28.61 kB / 1.233 GB, free: 120 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.818e-05/0.3475, allocations: 35.42 kB / 1.233 GB, free: 84 kB / 0.9825 GB Notification: Performance of SimCode: time 3.61e-07/0.3475, allocations: 4 kB / 1.233 GB, free: 80 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01981/0.3673, allocations: 2.411 MB / 1.235 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.297/7.664, allocations: 9.875 kB / 1.235 GB, free: 13.77 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.csv","/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