Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal",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.001574/0.001574, allocations: 112.5 kB / 15.73 MB, free: 76 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.002109/0.002109, allocations: 193.1 kB / 16.66 MB, free: 6.582 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.648/2.648, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3092, allocations: 151.6 MB / 1.166 GB, free: 7.355 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal): time 0.002159/0.3114, allocations: 0.8741 MB / 1.167 GB, free: 6.477 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001921/0.3134, allocations: 1.296 MB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.3135, allocations: 7.938 kB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.3137, allocations: 19.75 kB / 1.168 GB, free: 5.137 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.3138, allocations: 27.78 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009305/0.3148, allocations: 266.4 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000483/0.3153, allocations: 351.3 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.3154, allocations: 57.69 kB / 1.169 GB, free: 4.449 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.3157, allocations: 131.7 kB / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.316, allocations: 103.6 kB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 8.551e-05/0.316, allocations: 35.98 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.3162, allocations: 55.92 kB / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.583e-05/0.3163, allocations: 43.84 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.3164, allocations: 123.5 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.3168, allocations: 346.7 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3169, allocations: 0 / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3169, allocations: 0 / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.3169, allocations: 0 / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007933/0.3177, allocations: 0.5486 MB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3177, allocations: 12.03 kB / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.3178, allocations: 50.73 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.145e-05/0.3179, allocations: 24.8 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007305/0.3186, allocations: 300.1 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.3187, allocations: 16.38 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.137e-05/0.3187, allocations: 28.34 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.319, allocations: 149.3 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.319, allocations: 0 / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.319, allocations: 8 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.319, allocations: 4 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.3192, allocations: 67.89 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008912/0.3201, allocations: 0.7547 MB / 1.172 GB, free: 1.484 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.68e-05/0.3202, allocations: 53.2 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.89e-05/0.3202, allocations: 25.72 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.3203, allocations: 4 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.3204, allocations: 109 kB / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.3205, allocations: 0 / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0002989/0.3208, allocations: 125.5 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.3208, allocations: 77.11 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.321, allocations: 219.7 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.3211, allocations: 37.7 kB / 1.172 GB, free: 0.7578 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.3212, allocations: 140.2 kB / 1.172 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3212, allocations: 23.83 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.3214, allocations: 65.67 kB / 1.173 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3215, allocations: 338.7 kB / 1.173 GB, free: 188 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.3216, allocations: 59.97 kB / 1.173 GB, free: 128 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.3218, allocations: 132.6 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.3221, allocations: 194.2 kB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3221, allocations: 0 / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005039/0.3226, allocations: 292.8 kB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.567e-05/0.3227, allocations: 69.27 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3227, allocations: 4 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3227, allocations: 3.938 kB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.804e-05/0.3228, allocations: 16.19 kB / 1.174 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3228, allocations: 7.938 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004136/0.3232, allocations: 71.81 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.3233, allocations: 15.98 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition4,intPul.booPul.y,$PRE.intPul.booPul.y,extIntSig1.y[4],$whenCondition1,$whenCondition2,intPul1.booPul.y,$PRE.intPul1.booPul.y,extIntSig1.y[5],conInt3.y,conInt2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001591/0.3235, allocations: 151.9 kB / 1.174 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.496e-05/0.3235, allocations: 19.91 kB / 1.174 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.13e-05/0.3235, allocations: 16.92 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3235, allocations: 0 / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3236, allocations: 0 / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3236, allocations: 4 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.3238, allocations: 229.5 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3238, allocations: 4 kB / 1.174 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.764e-05/0.3238, allocations: 4.469 kB / 1.174 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3238, allocations: 0 / 1.174 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.3239, allocations: 0 / 1.174 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.3239, allocations: 11.98 kB / 1.174 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3239, allocations: 0 / 1.174 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.3241, allocations: 145.6 kB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-05/0.3241, allocations: 89.02 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.3241, allocations: 0 / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.307e-05/0.3242, allocations: 4 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.3242, allocations: 11.98 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.365e-06/0.3242, allocations: 4 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001188/0.3244, allocations: 144.2 kB / 1.174 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3244, allocations: 0 / 1.174 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002954/0.3247, allocations: 47.88 kB / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition3,$whenCondition4,extIntSig1.y[4],intPul.booPul.y,$whenCondition1,$whenCondition2,extIntSig1.y[5],intPul1.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005567/0.3252, allocations: 0.6895 MB / 1.175 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004245/0.3257, allocations: 254.7 kB / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3257, allocations: 3.938 kB / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.333e-05/0.3258, allocations: 35.91 kB / 1.175 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.3261, allocations: 32.36 kB / 1.175 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.3287, allocations: 2.188 MB / 1.178 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.329, allocations: 0.7241 MB / 1.178 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.504e-05/0.3291, allocations: 25.53 kB / 1.178 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.345e-05/0.3292, allocations: 55.42 kB / 1.178 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of SimCode: time 3.11e-07/0.3292, allocations: 0 / 1.178 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.353, allocations: 4.382 MB / 1.183 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.891/8.244, allocations: 4.562 kB / 1.183 GB, free: 5.848 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches