Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_8_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.001124/0.001124, allocations: 111.9 kB / 15.61 MB, free: 128 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.001258/0.001258, allocations: 196 kB / 16.54 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.783/1.783, allocations: 292.3 MB / 0.5489 GB, free: 12.86 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 74.25 kB / 0.6716 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2756, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002106/0.2778, allocations: 0.6734 MB / 0.7841 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001693/0.2795, allocations: 1.191 MB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.472e-05/0.2796, allocations: 0 / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.514e-05/0.2796, allocations: 3.938 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.769e-05/0.2797, allocations: 3.938 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006791/0.2804, allocations: 221.3 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.2806, allocations: 183.7 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.2807, allocations: 12 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.2809, allocations: 67.89 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.281, allocations: 51.86 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.281, allocations: 12 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.2811, allocations: 31.98 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/0.2812, allocations: 11.94 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.019e-05/0.2812, allocations: 51.88 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.2815, allocations: 151.8 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2815, allocations: 0 / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2815, allocations: 7.938 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.79e-06/0.2815, allocations: 0 / 0.7861 GB, free: 10.72 MB / 0.6075 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.0005614/0.2821, allocations: 442.7 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2821, allocations: 8.031 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.521e-05/0.2821, allocations: 30.75 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.2822, allocations: 8.938 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.2823, allocations: 180.2 kB / 0.7867 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.2824, allocations: 8.375 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.2824, allocations: 8.375 kB / 0.7867 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.2825, allocations: 50.23 kB / 0.7868 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.2825, allocations: 7.938 kB / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.2826, allocations: 0 / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2826, allocations: 0 / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.022e-05/0.2826, allocations: 12 kB / 0.7868 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004662/0.2831, allocations: 356.6 kB / 0.7871 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.144e-05/0.2832, allocations: 34.56 kB / 0.7872 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.765e-05/0.2832, allocations: 16.86 kB / 0.7872 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.2832, allocations: 0 / 0.7872 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.2834, allocations: 95.28 kB / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.2834, allocations: 0 / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0002744/0.2837, allocations: 97.66 kB / 0.7874 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.2838, allocations: 59.41 kB / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.2839, allocations: 121.8 kB / 0.7876 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/0.2839, allocations: 29.7 kB / 0.7876 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.061e-05/0.284, allocations: 96.06 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.2841, allocations: 11.81 kB / 0.7877 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-05/0.2842, allocations: 49.69 kB / 0.7877 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2843, allocations: 322.8 kB / 0.788 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.2844, allocations: 60.34 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.2846, allocations: 92.2 kB / 0.7882 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.2848, allocations: 163.6 kB / 0.7883 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2848, allocations: 0 / 0.7883 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004/0.2852, allocations: 260.9 kB / 0.7886 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.207e-05/0.2853, allocations: 67.39 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2853, allocations: 0 / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2853, allocations: 4 kB / 0.7887 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.371e-05/0.2853, allocations: 4 kB / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.2854, allocations: 0 / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000383/0.2857, allocations: 67.83 kB / 0.7887 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.2858, allocations: 16.06 kB / 0.7887 GB, free: 7.68 MB / 0.6075 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.000112/0.2859, allocations: 125.8 kB / 0.7889 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.2859, allocations: 7.906 kB / 0.7889 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.286, allocations: 8.375 kB / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.286, allocations: 4 kB / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.286, allocations: 0 / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.286, allocations: 0 / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.2862, allocations: 181.6 kB / 0.7891 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2862, allocations: 0 / 0.7891 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.678e-06/0.2862, allocations: 8 kB / 0.7891 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.2862, allocations: 0 / 0.7891 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.2862, allocations: 4 kB / 0.7891 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2862, allocations: 0 / 0.7891 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2862, allocations: 0 / 0.7891 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001468/0.2864, allocations: 118 kB / 0.7892 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.682e-05/0.2864, allocations: 84.95 kB / 0.7893 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.2865, allocations: 0 / 0.7893 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.365e-05/0.2865, allocations: 11.98 kB / 0.7893 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.633e-05/0.2865, allocations: 0 / 0.7893 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.2865, allocations: 4 kB / 0.7893 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.13e-05/0.2866, allocations: 91.27 kB / 0.7894 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2866, allocations: 3.938 kB / 0.7894 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002328/0.2868, allocations: 32 kB / 0.7894 GB, free: 6.914 MB / 0.6075 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.0005259/0.2874, allocations: 0.663 MB / 0.79 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000346/0.2877, allocations: 242.7 kB / 0.7903 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2877, allocations: 0 / 0.7903 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.631e-05/0.2878, allocations: 24 kB / 0.7903 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.288, allocations: 12.77 kB / 0.7903 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.2899, allocations: 1.714 MB / 0.792 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.2902, allocations: 0.6885 MB / 0.7927 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.655e-05/0.2902, allocations: 4.562 kB / 0.7927 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.862e-05/0.2903, allocations: 23.42 kB / 0.7927 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of SimCode: time 6.01e-07/0.2903, allocations: 0 / 0.7927 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02132/0.3116, allocations: 2.857 MB / 0.7955 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.462, allocations: 10.72 kB / 0.7955 GB, free: 0.5664 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1)