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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008855/0.0008856, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.004473/0.004474, allocations: 168.9 kB / 16.26 MB, free: 6.652 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.173/1.173, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.413/2.413, allocations: 462.7 MB / 0.7364 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 8.25 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2421, allocations: 159.6 MB / 1.059 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Validation.HeaterFan): time 0.7425/0.9846, allocations: 306.6 MB / 1.358 GB, free: 1.379 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02533/1.01, allocations: 29.23 MB / 1.387 GB, free: 152 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002409/1.012, allocations: 68.75 kB / 1.387 GB, free: 152 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.007807/1.02, allocations: 4.565 MB / 1.391 GB, free: 15.34 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006249/1.027, allocations: 2.829 MB / 1.394 GB, free: 14.62 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004954/1.032, allocations: 2.387 MB / 1.396 GB, free: 13.69 MB / 1.014 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1080:9-1080:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘{0.0, 0.1666666666666667}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.008988/1.041, allocations: 8.968 MB / 1.405 GB, free: 10.07 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/1.043, allocations: 1.639 MB / 1.407 GB, free: 9.117 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003654/1.047, allocations: 1.944 MB / 1.409 GB, free: 8.141 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002594/1.049, allocations: 1.377 MB / 1.41 GB, free: 7.473 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000195/1.049, allocations: 71.41 kB / 1.41 GB, free: 7.473 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005364/1.055, allocations: 3.834 MB / 1.414 GB, free: 5.609 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005234/1.055, allocations: 0.6298 MB / 1.414 GB, free: 5.215 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001046/1.056, allocations: 1.171 MB / 1.416 GB, free: 4.453 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004833/1.061, allocations: 5.314 MB / 1.421 GB, free: 1.07 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/1.061, allocations: 0 / 1.421 GB, free: 1.07 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.102e-06/1.061, allocations: 4 kB / 1.421 GB, free: 1.066 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.258e-05/1.061, allocations: 0 / 1.421 GB, free: 1.066 MB / 1.014 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.003282/1.064, allocations: 2.447 MB / 1.423 GB, free: 15.23 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/1.065, allocations: 11.78 kB / 1.423 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002037/1.065, allocations: 194.4 kB / 1.423 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005223/1.07, allocations: 0.9919 MB / 1.424 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008021/1.078, allocations: 5.633 MB / 1.43 GB, free: 10.48 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003655/1.078, allocations: 170.5 kB / 1.43 GB, free: 10.31 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/1.079, allocations: 136 kB / 1.43 GB, free: 10.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/1.081, allocations: 1.604 MB / 1.432 GB, free: 8.516 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/1.081, allocations: 4 kB / 1.432 GB, free: 8.512 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/1.082, allocations: 55.28 kB / 1.432 GB, free: 8.461 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.555e-05/1.082, allocations: 50.5 kB / 1.432 GB, free: 8.41 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003052/1.085, allocations: 1.38 MB / 1.433 GB, free: 7.023 MB / 1.029 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.008479/1.093, allocations: 7.521 MB / 1.44 GB, free: 15.05 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/1.095, allocations: 0.6652 MB / 1.441 GB, free: 14.36 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006127/1.095, allocations: 268.7 kB / 1.441 GB, free: 14.09 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002393/1.095, allocations: 190.1 kB / 1.442 GB, free: 13.87 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/1.095, allocations: 42.56 kB / 1.442 GB, free: 13.82 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004147/1.096, allocations: 102.5 kB / 1.442 GB, free: 13.72 MB / 1.045 GB Notification: Performance of pre-optimization done (n=36): time 1.934e-06/1.096, allocations: 0 / 1.442 GB, free: 13.72 MB / 1.045 GB Notification: Performance of matching and sorting (n=36): time 0.002433/1.098, allocations: 1.081 MB / 1.443 GB, free: 12.59 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/1.098, allocations: 59.41 kB / 1.443 GB, free: 12.52 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/1.102, allocations: 2.36 MB / 1.445 GB, free: 10.14 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.528e-05/1.102, allocations: 41.7 kB / 1.445 GB, free: 10.09 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007887/1.102, allocations: 0.9521 MB / 1.446 GB, free: 9.137 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/1.103, allocations: 142 kB / 1.446 GB, free: 9 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/1.103, allocations: 117.6 kB / 1.446 GB, free: 8.879 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001312/1.103, allocations: 345.9 kB / 1.447 GB, free: 8.535 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/1.104, allocations: 0.5371 MB / 1.447 GB, free: 7.992 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/1.105, allocations: 0.8168 MB / 1.448 GB, free: 7.059 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/1.107, allocations: 1.16 MB / 1.449 GB, free: 5.801 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/1.107, allocations: 0 / 1.449 GB, free: 5.801 MB / 1.045 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002965/1.11, allocations: 1.687 MB / 1.451 GB, free: 4.086 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.000157/1.111, allocations: 307.1 kB / 1.451 GB, free: 3.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/1.111, allocations: 11.94 kB / 1.451 GB, free: 3.668 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000127/1.111, allocations: 36.84 kB / 1.451 GB, free: 3.629 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/1.112, allocations: 243.6 kB / 1.451 GB, free: 3.391 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009478/1.113, allocations: 1.412 MB / 1.453 GB, free: 1.844 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/1.114, allocations: 220.6 kB / 1.453 GB, free: 1.629 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/1.115, allocations: 43.98 kB / 1.453 GB, free: 1.586 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.947e-06/1.115, allocations: 4 kB / 1.453 GB, free: 1.582 MB / 1.045 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002968/1.118, allocations: 1.449 MB / 1.454 GB, free: 116 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/1.118, allocations: 4 kB / 1.454 GB, free: 112 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.002e-05/1.118, allocations: 32.86 kB / 1.454 GB, free: 76 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/1.119, allocations: 239.8 kB / 1.455 GB, free: 15.84 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008648/1.12, allocations: 1.409 MB / 1.456 GB, free: 14.3 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/1.121, allocations: 192.3 kB / 1.456 GB, free: 14.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.84e-05/1.121, allocations: 35.98 kB / 1.456 GB, free: 14.08 MB / 1.061 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 (105): * Single equations (assignments): 102 * 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.0007888/1.122, allocations: 0.6492 MB / 1.457 GB, free: 13.42 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/1.122, allocations: 205.3 kB / 1.457 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001599/1.124, allocations: 0.7989 MB / 1.458 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/1.124, allocations: 7.984 kB / 1.458 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/1.124, allocations: 3.938 kB / 1.458 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/1.124, allocations: 4 kB / 1.458 GB, free: 12.36 MB / 1.061 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 postOpt removeSimpleEquations (simulation): time 0.003171/1.127, allocations: 2.211 MB / 1.46 GB, free: 10.06 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.127, allocations: 0 / 1.46 GB, free: 10.06 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000547/1.127, allocations: 83.88 kB / 1.46 GB, free: 9.977 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.604e-05/1.127, allocations: 33.06 kB / 1.46 GB, free: 9.941 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/1.127, allocations: 19.98 kB / 1.46 GB, free: 9.922 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000835/1.128, allocations: 1.397 MB / 1.462 GB, free: 8.395 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.128, allocations: 4 kB / 1.462 GB, free: 8.391 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/1.13, allocations: 0.9056 MB / 1.462 GB, free: 7.426 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004166/1.13, allocations: 358.3 kB / 1.463 GB, free: 7.055 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/1.13, allocations: 11.98 kB / 1.463 GB, free: 7.043 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/1.131, allocations: 111.8 kB / 1.463 GB, free: 6.934 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/1.131, allocations: 27.91 kB / 1.463 GB, free: 6.906 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.79e-05/1.132, allocations: 23.92 kB / 1.463 GB, free: 6.883 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002156/1.134, allocations: 1.646 MB / 1.465 GB, free: 5.227 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.7e-07/1.134, allocations: 0 / 1.465 GB, free: 5.227 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002009/1.136, allocations: 0.9047 MB / 1.465 GB, free: 4.32 MB / 1.061 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 (34): * Single equations (assignments): 33 * 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.002303/1.138, allocations: 1.793 MB / 1.467 GB, free: 2.473 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.003436/1.141, allocations: 1.892 MB / 1.469 GB, free: 0.5586 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.141, allocations: 3.938 kB / 1.469 GB, free: 0.5547 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0006475/1.142, allocations: 367.4 kB / 1.469 GB, free: 188 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00492/1.147, allocations: 1.152 MB / 1.47 GB, free: 15.05 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03414/1.181, allocations: 17.07 MB / 1.487 GB, free: 12.77 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/1.182, allocations: 1.53 MB / 1.489 GB, free: 11.2 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001958/1.184, allocations: 481.7 kB / 1.489 GB, free: 10.73 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009425/1.185, allocations: 0.8156 MB / 1.49 GB, free: 9.918 MB / 1.092 GB Notification: Performance of SimCode: time 7.12e-07/1.185, allocations: 0 / 1.49 GB, free: 9.918 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.296/3.481, allocations: 56.52 MB / 1.545 GB, free: 2.027 MB / 1.139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003186/3.482, allocations: 218.2 kB / 1.545 GB, free: 1.762 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.203/10.68, allocations: 0 / 1.545 GB, free: 1.762 MB / 1.139 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FMI.Validation.HeaterFan_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FMI_Validation_HeaterFan_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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