Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",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.007124/0.007124, allocations: 96.97 kB / 15.73 MB, free: 6.031 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.001173/0.001173, allocations: 194.6 kB / 16.68 MB, free: 5.961 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.486/2.486, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 68.39 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3179, allocations: 140.4 MB / 1.087 GB, free: 2 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.00194/0.3199, allocations: 0.6651 MB / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3215, allocations: 1.181 MB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.814e-05/0.3215, allocations: 0 / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.772e-05/0.3216, allocations: 3.938 kB / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.368e-05/0.3217, allocations: 19.86 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007459/0.3224, allocations: 214.8 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002741/0.3227, allocations: 187.7 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.788e-05/0.3228, allocations: 4 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.3229, allocations: 71.88 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.3231, allocations: 71.77 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.3232, allocations: 16 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.107e-05/0.3232, allocations: 27.98 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.3233, allocations: 11.94 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.535e-05/0.3234, allocations: 55.88 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003729/0.3237, allocations: 151.8 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3238, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3238, allocations: 4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.3238, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000745/0.3245, allocations: 434.7 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3246, allocations: 8.031 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.3246, allocations: 34.75 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.587e-05/0.3247, allocations: 12.89 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.3249, allocations: 176.2 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.3249, allocations: 4.375 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.325, allocations: 20.38 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.3251, allocations: 42.25 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3251, allocations: 7.875 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.3251, allocations: 3.984 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3251, allocations: 4 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.833e-05/0.3252, allocations: 12 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005898/0.3258, allocations: 356.7 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.57e-05/0.3259, allocations: 30.56 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.682e-05/0.3259, allocations: 16.86 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.326, allocations: 3.938 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.3262, allocations: 83.42 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.3262, allocations: 0 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0002834/0.3265, allocations: 97.67 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.3266, allocations: 59.33 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.3267, allocations: 121.7 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.3267, allocations: 33.7 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.251e-05/0.3268, allocations: 96.12 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.3269, allocations: 15.83 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.327, allocations: 57.69 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3271, allocations: 322.7 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.3273, allocations: 63.95 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.3274, allocations: 88.27 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.3277, allocations: 159.6 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3277, allocations: 0 / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004675/0.3282, allocations: 260.8 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.527e-05/0.3282, allocations: 71.39 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3282, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3283, allocations: 128 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.557e-05/0.3283, allocations: 11.94 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3283, allocations: 0 / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.3287, allocations: 51.94 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.3287, allocations: 15.98 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,nand1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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.0001103/0.3288, allocations: 124.6 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.3289, allocations: 7.953 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.804e-05/0.3289, allocations: 12.84 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3289, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3289, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3289, allocations: 3.984 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002447/0.3292, allocations: 177.6 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3292, allocations: 3.938 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.202e-05/0.3292, allocations: 7.938 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3292, allocations: 0 / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.3292, allocations: 8.047 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3292, allocations: 0 / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3292, allocations: 4 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.3294, allocations: 109 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.759e-05/0.3295, allocations: 92.98 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.3295, allocations: 4 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.19e-05/0.3295, allocations: 0 / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.3296, allocations: 7.984 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.3296, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.479e-05/0.3296, allocations: 95.27 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.704e-06/0.3296, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002507/0.3299, allocations: 35.94 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,nand1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0007692/0.3307, allocations: 0.6514 MB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003788/0.3311, allocations: 250.8 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3311, allocations: 0 / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.383e-05/0.3311, allocations: 27.92 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.3314, allocations: 15.98 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.3336, allocations: 1.699 MB / 1.096 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005887/0.3342, allocations: 0.6923 MB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.039e-05/0.3343, allocations: 4 kB / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.3343, allocations: 19.38 kB / 1.097 GB, free: 7.965 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.3343, allocations: 4 kB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.3552, allocations: 2.884 MB / 1.1 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/8.035, allocations: 11.69 kB / 1.1 GB, free: 5.172 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches