Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Fluid.FMI.Validation.HeaterFan,fileNamePrefix="Buildings_latest_Buildings_Fluid_FMI_Validation_HeaterFan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Validation.HeaterFan,fileNamePrefix="Buildings_latest_Buildings_Fluid_FMI_Validation_HeaterFan",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.004166/0.004166, allocations: 99.06 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 189.1 kB / 16.67 MB, free: 5.969 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 482.4 MB / 0.7548 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 59.89 kB / 1.083 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2754, allocations: 162.2 MB / 1.241 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Validation.HeaterFan): time 0.8394/1.115, allocations: 312.8 MB / 1.547 GB, free: 14.5 MB / 1.248 GB Notification: Performance of NFInst.instExpressions: time 0.03698/1.152, allocations: 29.37 MB / 1.576 GB, free: 1.043 MB / 1.264 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002341/1.154, allocations: 79.62 kB / 1.576 GB, free: 0.9648 MB / 1.264 GB Notification: Performance of NFTyping.typeComponents: time 0.005611/1.16, allocations: 2.399 MB / 1.578 GB, free: 14.56 MB / 1.279 GB Notification: Performance of NFTyping.typeBindings: time 0.006939/1.167, allocations: 3.185 MB / 1.581 GB, free: 11.36 MB / 1.279 GB Notification: Performance of NFTyping.typeClassSections: time 0.005798/1.173, allocations: 2.761 MB / 1.584 GB, free: 8.605 MB / 1.279 GB Notification: Performance of NFFlatten.flatten: time 0.009655/1.182, allocations: 7.363 MB / 1.591 GB, free: 1.234 MB / 1.279 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002718/1.185, allocations: 2.087 MB / 1.593 GB, free: 15.11 MB / 1.295 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004097/1.189, allocations: 2.527 MB / 1.596 GB, free: 12.57 MB / 1.295 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002347/1.191, allocations: 1.521 MB / 1.597 GB, free: 11.05 MB / 1.295 GB Notification: Performance of NFPackage.collectConstants: time 0.0003405/1.192, allocations: 256 kB / 1.597 GB, free: 10.8 MB / 1.295 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006093/1.198, allocations: 3.598 MB / 1.601 GB, free: 7.195 MB / 1.295 GB Notification: Performance of NFScalarize.scalarize: time 0.0007787/1.199, allocations: 0.8219 MB / 1.602 GB, free: 6.371 MB / 1.295 GB Notification: Performance of NFVerifyModel.verify: time 0.001378/1.2, allocations: 1.396 MB / 1.603 GB, free: 4.969 MB / 1.295 GB Notification: Performance of NFConvertDAE.convert: time 0.006674/1.207, allocations: 5.467 MB / 1.608 GB, free: 15.48 MB / 1.311 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/1.207, allocations: 0 / 1.608 GB, free: 15.48 MB / 1.311 GB Notification: Performance of FrontEnd: time 1.533e-06/1.207, allocations: 0 / 1.608 GB, free: 15.48 MB / 1.311 GB Notification: Performance of Transformations before backend: time 2.544e-05/1.207, allocations: 0 / 1.608 GB, free: 15.48 MB / 1.311 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.004693/1.212, allocations: 3.028 MB / 1.611 GB, free: 12.38 MB / 1.311 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/1.212, allocations: 11.98 kB / 1.611 GB, free: 12.37 MB / 1.311 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002457/1.212, allocations: 194.3 kB / 1.611 GB, free: 12.17 MB / 1.311 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00592/1.218, allocations: 0.9467 MB / 1.612 GB, free: 11.22 MB / 1.311 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/1.228, allocations: 5.759 MB / 1.618 GB, free: 5.406 MB / 1.311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/1.228, allocations: 106.6 kB / 1.618 GB, free: 5.301 MB / 1.311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/1.228, allocations: 132 kB / 1.618 GB, free: 5.172 MB / 1.311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003337/1.232, allocations: 1.597 MB / 1.62 GB, free: 3.508 MB / 1.311 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/1.232, allocations: 0 / 1.62 GB, free: 3.508 MB / 1.311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/1.232, allocations: 52 kB / 1.62 GB, free: 3.457 MB / 1.311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-05/1.232, allocations: 50.5 kB / 1.62 GB, free: 3.406 MB / 1.311 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003478/1.235, allocations: 1.329 MB / 1.621 GB, free: 2.07 MB / 1.311 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/1.245, allocations: 7.745 MB / 1.629 GB, free: 9.766 MB / 1.326 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/1.247, allocations: 0.6807 MB / 1.629 GB, free: 9.059 MB / 1.326 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006869/1.248, allocations: 252.7 kB / 1.63 GB, free: 8.809 MB / 1.326 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002923/1.248, allocations: 186.2 kB / 1.63 GB, free: 8.59 MB / 1.326 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/1.248, allocations: 43.16 kB / 1.63 GB, free: 8.539 MB / 1.326 GB Notification: Performance of pre-optimization done (n=35): time 1.644e-06/1.249, allocations: 3.938 kB / 1.63 GB, free: 8.535 MB / 1.326 GB Notification: Performance of matching and sorting (n=35): time 0.002782/1.251, allocations: 1.048 MB / 1.631 GB, free: 7.441 MB / 1.326 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/1.251, allocations: 63.34 kB / 1.631 GB, free: 7.367 MB / 1.326 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003347/1.255, allocations: 2.353 MB / 1.633 GB, free: 4.996 MB / 1.326 GB Notification: Performance of collectPreVariables (initialization): time 5.691e-05/1.255, allocations: 37.7 kB / 1.633 GB, free: 4.953 MB / 1.326 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009384/1.256, allocations: 0.9742 MB / 1.634 GB, free: 3.969 MB / 1.326 GB Notification: Performance of collectInitialBindings (initialization): time 0.00012/1.256, allocations: 134.9 kB / 1.634 GB, free: 3.836 MB / 1.326 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004004/1.256, allocations: 258.4 kB / 1.635 GB, free: 3.578 MB / 1.326 GB Notification: Performance of setup shared object (initialization): time 0.0001613/1.256, allocations: 345.9 kB / 1.635 GB, free: 3.234 MB / 1.326 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/1.258, allocations: 0.5165 MB / 1.635 GB, free: 2.711 MB / 1.326 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/1.259, allocations: 0.7892 MB / 1.636 GB, free: 1.809 MB / 1.326 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00226/1.262, allocations: 1.121 MB / 1.637 GB, free: 0.5938 MB / 1.326 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/1.262, allocations: 8 kB / 1.637 GB, free: 0.5859 MB / 1.326 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003449/1.265, allocations: 1.638 MB / 1.639 GB, free: 14.91 MB / 1.342 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/1.265, allocations: 8 kB / 1.639 GB, free: 14.91 MB / 1.342 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/1.265, allocations: 8 kB / 1.639 GB, free: 14.9 MB / 1.342 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000138/1.265, allocations: 32.84 kB / 1.639 GB, free: 14.86 MB / 1.342 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/1.266, allocations: 239.8 kB / 1.639 GB, free: 14.63 MB / 1.342 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/1.268, allocations: 1.572 MB / 1.641 GB, free: 12.92 MB / 1.342 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/1.269, allocations: 242.7 kB / 1.641 GB, free: 12.68 MB / 1.342 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.898e-05/1.269, allocations: 44.08 kB / 1.641 GB, free: 12.64 MB / 1.342 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001889/1.271, allocations: 1.01 MB / 1.642 GB, free: 11.62 MB / 1.342 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00145/1.273, allocations: 0.7829 MB / 1.643 GB, free: 10.73 MB / 1.342 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00209/1.275, allocations: 1.105 MB / 1.644 GB, free: 9.527 MB / 1.342 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.691e-06/1.275, allocations: 7.938 kB / 1.644 GB, free: 9.52 MB / 1.342 GB Notification: Performance of matching and sorting (n=138) (initialization_lambda0): time 0.003319/1.278, allocations: 1.616 MB / 1.645 GB, free: 7.871 MB / 1.342 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/1.278, allocations: 8 kB / 1.645 GB, free: 7.863 MB / 1.342 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/1.278, allocations: 8 kB / 1.645 GB, free: 7.855 MB / 1.342 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.126e-05/1.278, allocations: 41.16 kB / 1.645 GB, free: 7.812 MB / 1.342 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/1.279, allocations: 231.7 kB / 1.646 GB, free: 7.586 MB / 1.342 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/1.281, allocations: 1.572 MB / 1.647 GB, free: 5.871 MB / 1.342 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/1.282, allocations: 163.5 kB / 1.647 GB, free: 5.711 MB / 1.342 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-05/1.282, allocations: 51.92 kB / 1.647 GB, free: 5.66 MB / 1.342 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (103): * Single equations (assignments): 100 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002148/1.282, allocations: 224 kB / 1.648 GB, free: 5.434 MB / 1.342 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/1.283, allocations: 222.5 kB / 1.648 GB, free: 5.215 MB / 1.342 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/1.285, allocations: 0.7639 MB / 1.649 GB, free: 4.418 MB / 1.342 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/1.285, allocations: 4 kB / 1.649 GB, free: 4.414 MB / 1.342 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/1.285, allocations: 3.984 kB / 1.649 GB, free: 4.41 MB / 1.342 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/1.285, allocations: 0 / 1.649 GB, free: 4.41 MB / 1.342 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003582/1.288, allocations: 2.157 MB / 1.651 GB, free: 2.152 MB / 1.342 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/1.288, allocations: 0 / 1.651 GB, free: 2.152 MB / 1.342 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006511/1.289, allocations: 100.1 kB / 1.651 GB, free: 2.055 MB / 1.342 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.171e-05/1.289, allocations: 32.78 kB / 1.651 GB, free: 2.02 MB / 1.342 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/1.289, allocations: 11.98 kB / 1.651 GB, free: 2.008 MB / 1.342 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/1.29, allocations: 1.556 MB / 1.652 GB, free: 324 kB / 1.342 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.29, allocations: 3.938 kB / 1.652 GB, free: 320 kB / 1.342 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/1.292, allocations: 0.9019 MB / 1.653 GB, free: 15.35 MB / 1.357 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000495/1.292, allocations: 367.5 kB / 1.654 GB, free: 14.97 MB / 1.357 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/1.293, allocations: 8.094 kB / 1.654 GB, free: 14.96 MB / 1.357 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/1.294, allocations: 71.92 kB / 1.654 GB, free: 14.89 MB / 1.357 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/1.294, allocations: 27.89 kB / 1.654 GB, free: 14.87 MB / 1.357 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.607e-05/1.294, allocations: 19.98 kB / 1.654 GB, free: 14.85 MB / 1.357 GB Notification: Performance of sorting global known variables: time 0.002502/1.296, allocations: 1.639 MB / 1.655 GB, free: 13.2 MB / 1.357 GB Notification: Performance of sort global known variables: time 2.255e-06/1.296, allocations: 0 / 1.655 GB, free: 13.2 MB / 1.357 GB Notification: Performance of remove unused functions: time 0.002038/1.298, allocations: 0.8892 MB / 1.656 GB, free: 12.31 MB / 1.357 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002755/1.301, allocations: 1.809 MB / 1.658 GB, free: 10.43 MB / 1.357 GB Notification: Performance of simCode: created initialization part: time 0.003948/1.305, allocations: 1.827 MB / 1.66 GB, free: 8.574 MB / 1.357 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/1.305, allocations: 0 / 1.66 GB, free: 8.574 MB / 1.357 GB Notification: Performance of simCode: created simulation system equations: time 0.0007783/1.306, allocations: 352 kB / 1.66 GB, free: 8.219 MB / 1.357 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004812/1.311, allocations: 1.235 MB / 1.661 GB, free: 7.012 MB / 1.357 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02327/1.334, allocations: 14.74 MB / 1.676 GB, free: 7.812 MB / 1.373 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001319/1.335, allocations: 1.537 MB / 1.677 GB, free: 6.242 MB / 1.373 GB Notification: Performance of simCode: alias equations: time 0.001674/1.337, allocations: 473.9 kB / 1.678 GB, free: 5.777 MB / 1.373 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/1.338, allocations: 0.8 MB / 1.678 GB, free: 4.977 MB / 1.373 GB Notification: Performance of SimCode: time 5.11e-07/1.338, allocations: 0 / 1.678 GB, free: 4.977 MB / 1.373 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.104/1.442, allocations: 56.21 MB / 1.733 GB, free: 13.34 MB / 1.436 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/14.96, allocations: 3.859 kB / 1.733 GB, free: 13.34 MB / 1.436 GB (rm -f Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan.pipe >> ../files/Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_FMI_Validation_HeaterFan.fmu > Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FMI_Validation_HeaterFan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches