Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Utilities.Math.Examples.VectorFunctions,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_VectorFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.VectorFunctions,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_VectorFunctions",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.001176/0.001176, 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.001096/0.001097, allocations: 192.9 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.278/2.278, allocations: 390.3 MB / 0.6647 GB, free: 492 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 67.89 kB / 0.8126 GB, free: 14.41 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5955/0.5972, allocations: 140.4 MB / 0.9497 GB, free: 9.359 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.VectorFunctions): time 0.002277/0.5996, allocations: 1.591 MB / 0.9513 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006377/0.6002, allocations: 0.4992 MB / 0.9518 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.888e-05/0.6003, allocations: 5.406 kB / 0.9518 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.035e-05/0.6004, allocations: 13.36 kB / 0.9518 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.14e-05/0.6004, allocations: 21.19 kB / 0.9518 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002206/0.6006, allocations: 39.5 kB / 0.9518 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.547e-05/0.6007, allocations: 79.41 kB / 0.9519 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.6009, allocations: 48.08 kB / 0.952 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.665e-05/0.601, allocations: 35.73 kB / 0.952 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.34e-05/0.6011, allocations: 39.25 kB / 0.952 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.6011, allocations: 6.719 kB / 0.952 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.1e-05/0.6012, allocations: 13.5 kB / 0.952 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.841e-05/0.6012, allocations: 25.91 kB / 0.9521 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.973e-05/0.6012, allocations: 40.14 kB / 0.9521 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.6014, allocations: 85.11 kB / 0.9522 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6014, allocations: 5.219 kB / 0.9522 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.442e-06/0.6014, allocations: 0 / 0.9522 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.6014, allocations: 0 / 0.9522 GB, free: 7.402 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004303/0.6018, allocations: 401 kB / 0.9526 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.6019, allocations: 9.5 kB / 0.9526 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.6019, allocations: 41.61 kB / 0.9526 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.602, allocations: 9.125 kB / 0.9526 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.6021, allocations: 194.1 kB / 0.9528 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.6021, allocations: 3.312 kB / 0.9528 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.6021, allocations: 13.53 kB / 0.9528 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.6023, allocations: 106.2 kB / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.6024, allocations: 0 / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.6024, allocations: 5.156 kB / 0.9529 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.6024, allocations: 1.031 kB / 0.9529 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.6026, allocations: 103.3 kB / 0.953 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.6031, allocations: 375.7 kB / 0.9534 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.6032, allocations: 67.41 kB / 0.9535 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.6034, allocations: 50.08 kB / 0.9535 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.6034, allocations: 2.625 kB / 0.9535 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.6034, allocations: 39.88 kB / 0.9536 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/0.6034, allocations: 0 / 0.9536 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004143/0.6038, allocations: 163.1 kB / 0.9537 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.6039, allocations: 64.16 kB / 0.9538 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.263e-05/0.604, allocations: 130.9 kB / 0.9539 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.604, allocations: 29.7 kB / 0.9539 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.506e-05/0.604, allocations: 103.8 kB / 0.954 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.768e-05/0.6041, allocations: 22.78 kB / 0.954 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.6041, allocations: 23.42 kB / 0.9541 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.889e-05/0.6042, allocations: 320.2 kB / 0.9544 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.6043, allocations: 42.03 kB / 0.9544 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.6044, allocations: 42.84 kB / 0.9544 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.6046, allocations: 93.23 kB / 0.9545 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.6046, allocations: 0 / 0.9545 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002677/0.6049, allocations: 126.4 kB / 0.9547 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.6049, allocations: 8.656 kB / 0.9547 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.605, allocations: 0 / 0.9547 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.605, allocations: 4.844 kB / 0.9547 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.6051, allocations: 17.08 kB / 0.9547 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.6051, allocations: 3.984 kB / 0.9547 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.805e-05/0.6052, allocations: 6.406 kB / 0.9547 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.6052, allocations: 2.125 kB / 0.9547 GB, free: 5.172 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 6 * 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.791e-05/0.6053, allocations: 119.2 kB / 0.9548 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.6054, allocations: 16 kB / 0.9548 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003282/0.6057, allocations: 140.5 kB / 0.955 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.6057, allocations: 3.938 kB / 0.955 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.6057, allocations: 1.156 kB / 0.955 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6057, allocations: 0 / 0.955 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.6059, allocations: 206 kB / 0.9552 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.6059, allocations: 0 / 0.9552 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.606, allocations: 22.23 kB / 0.9552 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.606, allocations: 4 kB / 0.9552 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.606, allocations: 0.6875 kB / 0.9552 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.606, allocations: 9.391 kB / 0.9552 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.606, allocations: 0 / 0.9552 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.6063, allocations: 220.2 kB / 0.9554 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.814e-05/0.6064, allocations: 91.28 kB / 0.9555 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.6064, allocations: 9.156 kB / 0.9555 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.967e-05/0.6065, allocations: 8.469 kB / 0.9555 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.6066, allocations: 7.328 kB / 0.9555 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.6066, allocations: 2.906 kB / 0.9555 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.636e-05/0.6066, allocations: 106.7 kB / 0.9556 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6066, allocations: 0 / 0.9556 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002374/0.6069, allocations: 21.91 kB / 0.9556 GB, free: 4.309 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 6 * 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.00053/0.6074, allocations: 0.759 MB / 0.9564 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002535/0.6077, allocations: 107.1 kB / 0.9565 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6077, allocations: 0 / 0.9565 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.6078, allocations: 59.36 kB / 0.9565 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.608, allocations: 5.938 kB / 0.9566 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.6097, allocations: 1.594 MB / 0.9581 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/0.6099, allocations: 0.7039 MB / 0.9588 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001193/0.61, allocations: 12.39 kB / 0.9588 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.93e-05/0.6101, allocations: 26.52 kB / 0.9588 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/0.6101, allocations: 4 kB / 0.9588 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.6271, allocations: 1.963 MB / 0.9608 GB, free: 352 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.453/8.08, allocations: 11.48 kB / 0.9608 GB, free: 344 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_Math_Examples_VectorFunctions.fmu > Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_VectorFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches