Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Average.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.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",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.0009848/0.0009848, 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.0009562/0.0009562, allocations: 193.7 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.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.253/2.253, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 67.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6174/0.6187, allocations: 140.4 MB / 0.9497 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002418/0.6212, allocations: 1.515 MB / 0.9512 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000283/0.6215, allocations: 117.3 kB / 0.9513 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.981e-05/0.6215, allocations: 3.938 kB / 0.9513 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.6216, allocations: 9.297 kB / 0.9513 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.575e-05/0.6217, allocations: 5.312 kB / 0.9513 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.6219, allocations: 28.16 kB / 0.9514 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.561e-05/0.622, allocations: 55.27 kB / 0.9514 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.6221, allocations: 28.34 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.166e-05/0.6222, allocations: 29.48 kB / 0.9515 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.513e-05/0.6223, allocations: 29.47 kB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.6223, allocations: 3.875 kB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.974e-05/0.6223, allocations: 15.67 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.934e-05/0.6224, allocations: 12.06 kB / 0.9515 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.248e-05/0.6224, allocations: 29.84 kB / 0.9515 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.6226, allocations: 54.88 kB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.6226, allocations: 1.406 kB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6226, allocations: 4 kB / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.6226, allocations: 0 / 0.9516 GB, free: 7.648 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004421/0.623, allocations: 379.2 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.6231, allocations: 9.188 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.768e-05/0.6231, allocations: 39.86 kB / 0.952 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.836e-05/0.6231, allocations: 7.781 kB / 0.952 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.6233, allocations: 191.9 kB / 0.9522 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.6233, allocations: 5.938 kB / 0.9522 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.6233, allocations: 3.688 kB / 0.9522 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002512/0.6236, allocations: 89.11 kB / 0.9523 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.924e-06/0.6236, allocations: 7.875 kB / 0.9523 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.6236, allocations: 4 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.6236, allocations: 1.594 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/0.6239, allocations: 80.56 kB / 0.9524 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004184/0.6243, allocations: 332.5 kB / 0.9527 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.6245, allocations: 58.12 kB / 0.9528 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.6247, allocations: 44.44 kB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.6247, allocations: 6.766 kB / 0.9528 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.155e-05/0.6247, allocations: 30.66 kB / 0.9528 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.6247, allocations: 5.438 kB / 0.9528 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004974/0.6252, allocations: 134.2 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.003e-05/0.6253, allocations: 51.41 kB / 0.953 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.149e-05/0.6253, allocations: 115.8 kB / 0.9531 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.035e-06/0.6253, allocations: 25.7 kB / 0.9532 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.942e-05/0.6254, allocations: 98.22 kB / 0.9533 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.6254, allocations: 17.22 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.6254, allocations: 13.34 kB / 0.9533 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.489e-05/0.6255, allocations: 325 kB / 0.9536 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.6256, allocations: 30.09 kB / 0.9536 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.6258, allocations: 35.02 kB / 0.9537 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.626, allocations: 78.25 kB / 0.9537 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.626, allocations: 0 / 0.9537 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002944/0.6263, allocations: 104.6 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.6263, allocations: 4.219 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.6264, allocations: 5.438 kB / 0.9538 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.6264, allocations: 0 / 0.9538 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.6265, allocations: 14.89 kB / 0.9538 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.6265, allocations: 0 / 0.9538 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.324e-05/0.6266, allocations: 15.69 kB / 0.9539 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.6266, allocations: 1 kB / 0.9539 GB, free: 5.539 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 (3): * Single equations (assignments): 3 * 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 5.291e-05/0.6267, allocations: 117.2 kB / 0.954 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.64e-05/0.6267, allocations: 6.062 kB / 0.954 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003391/0.627, allocations: 128.3 kB / 0.9541 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.627, allocations: 1.406 kB / 0.9541 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.6271, allocations: 0 / 0.9541 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.6271, allocations: 0 / 0.9541 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.6272, allocations: 181.8 kB / 0.9543 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.6272, allocations: 1.438 kB / 0.9543 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.78e-05/0.6273, allocations: 17.73 kB / 0.9543 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.6273, allocations: 1.562 kB / 0.9543 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.6273, allocations: 0 / 0.9543 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.6273, allocations: 7.984 kB / 0.9543 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6273, allocations: 0.9688 kB / 0.9543 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.6276, allocations: 207.3 kB / 0.9545 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/0.6277, allocations: 82.45 kB / 0.9546 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.6277, allocations: 1.094 kB / 0.9546 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.925e-05/0.6278, allocations: 14.98 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.6278, allocations: 1.344 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.6278, allocations: 2.25 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.177e-05/0.6279, allocations: 92.39 kB / 0.9547 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6279, allocations: 0 / 0.9547 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002169/0.6281, allocations: 17.19 kB / 0.9547 GB, free: 4.715 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 (3): * Single equations (assignments): 3 * 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.0005118/0.6286, allocations: 0.7439 MB / 0.9554 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003364/0.629, allocations: 79.91 kB / 0.9555 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.629, allocations: 1.094 kB / 0.9555 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.6291, allocations: 42.8 kB / 0.9556 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.6294, allocations: 6.266 kB / 0.9556 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.6308, allocations: 1.417 MB / 0.9569 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.631, allocations: 0.7004 MB / 0.9576 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.948e-05/0.631, allocations: 8.422 kB / 0.9576 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.6311, allocations: 13.75 kB / 0.9576 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6311, allocations: 0 / 0.9576 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.59/2.221, allocations: 1.788 MB / 0.9594 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/12.6, allocations: 3.031 kB / 0.9594 GB, free: 0.9219 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches