Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Latch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",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.001597/0.001597, 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.0013/0.0013, allocations: 191.1 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.869/2.869, allocations: 469.8 MB / 0.7424 GB, free: 7.406 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 75.23 kB / 0.9087 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2764, allocations: 159.1 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002193/0.2786, allocations: 0.7649 MB / 1.065 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001669/0.2803, allocations: 1.254 MB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.931e-05/0.2804, allocations: 0 / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.776e-05/0.2804, allocations: 11.88 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.533e-05/0.2805, allocations: 11.86 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007675/0.2813, allocations: 254.2 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.2816, allocations: 271.5 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.2818, allocations: 53.09 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.282, allocations: 103.8 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.2821, allocations: 87.69 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.755e-05/0.2822, allocations: 24 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.867e-05/0.2823, allocations: 39.98 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.826e-05/0.2824, allocations: 35.91 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.2825, allocations: 99.67 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.2828, allocations: 247.5 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2828, allocations: 0 / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.056e-06/0.2829, allocations: 4 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.2829, allocations: 3.938 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006927/0.2836, allocations: 490.5 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.2836, allocations: 15.97 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.2837, allocations: 42.73 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.787e-05/0.2837, allocations: 20.83 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000595/0.2843, allocations: 244.3 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.2844, allocations: 16.3 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.2844, allocations: 20.38 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.2847, allocations: 133.8 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.2847, allocations: 0 / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.2847, allocations: 8 kB / 1.068 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.2847, allocations: 0 / 1.068 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.2849, allocations: 69.27 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006453/0.2855, allocations: 456.2 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.2857, allocations: 98.47 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.889e-05/0.2858, allocations: 44.83 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.372e-06/0.2858, allocations: 7.938 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.2861, allocations: 127.3 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.2861, allocations: 0 / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0004606/0.2865, allocations: 247.4 kB / 1.069 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.2866, allocations: 55.41 kB / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.2867, allocations: 138.9 kB / 1.069 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.2868, allocations: 29.7 kB / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.2869, allocations: 116.6 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.2869, allocations: 31.55 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.287, allocations: 65.69 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2872, allocations: 326.8 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.2874, allocations: 67.95 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.2876, allocations: 127.6 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.2878, allocations: 217.2 kB / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2878, allocations: 0 / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000526/0.2884, allocations: 320.7 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.942e-05/0.2884, allocations: 67.39 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2885, allocations: 7.938 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2885, allocations: 4 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.324e-05/0.2885, allocations: 4 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.2885, allocations: 7.984 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.2889, allocations: 51.84 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.2889, allocations: 20.03 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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.0001296/0.289, allocations: 141.6 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.2891, allocations: 15.84 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.999e-05/0.2891, allocations: 8.844 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.2891, allocations: 7.984 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2891, allocations: 0 / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.2891, allocations: 3.984 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005343/0.2897, allocations: 494.3 kB / 1.071 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2897, allocations: 0 / 1.071 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.496e-05/0.2897, allocations: 7.984 kB / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2897, allocations: 0 / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.2897, allocations: 8 kB / 1.071 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2897, allocations: 0 / 1.071 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2897, allocations: 0 / 1.071 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.2901, allocations: 289.1 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.2901, allocations: 92.94 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.2902, allocations: 8 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.414e-05/0.2902, allocations: 3.984 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.2903, allocations: 15.92 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.2903, allocations: 8 kB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.049e-05/0.2904, allocations: 96.52 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2904, allocations: 0 / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003189/0.2907, allocations: 51.89 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0007019/0.2914, allocations: 0.8362 MB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004542/0.2919, allocations: 306.5 kB / 1.073 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2919, allocations: 0.5 kB / 1.073 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.292, allocations: 75.92 kB / 1.073 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.2924, allocations: 29.52 kB / 1.073 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.2948, allocations: 2.03 MB / 1.075 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.2952, allocations: 0.7124 MB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.347e-05/0.2952, allocations: 13.08 kB / 1.076 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.65e-05/0.2953, allocations: 35.42 kB / 1.076 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of SimCode: time 7.62e-07/0.2953, allocations: 3.938 kB / 1.076 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/0.3193, allocations: 3.539 MB / 1.079 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.613/7.932, allocations: 7.844 kB / 1.079 GB, free: 13.95 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches