Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",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.006632/0.006632, allocations: 100.1 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.001663/0.001663, allocations: 192.9 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.523/1.523, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.518/2.518, allocations: 482.6 MB / 0.7551 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 61.55 kB / 1.083 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2822, allocations: 162.3 MB / 1.242 GB, free: 9.012 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.001605/0.2838, allocations: 0.7363 MB / 1.243 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.2851, allocations: 1.148 MB / 1.244 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.989e-05/0.2852, allocations: 0 / 1.244 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.2852, allocations: 7.938 kB / 1.244 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.432e-05/0.2853, allocations: 15.84 kB / 1.244 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.2857, allocations: 130.8 kB / 1.244 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.2859, allocations: 127.7 kB / 1.244 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.856e-05/0.286, allocations: 17.38 kB / 1.244 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.258e-05/0.2861, allocations: 51.91 kB / 1.244 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.559e-05/0.2862, allocations: 43.88 kB / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.2862, allocations: 12 kB / 1.244 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.708e-05/0.2863, allocations: 31.91 kB / 1.244 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.2863, allocations: 15.94 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.34e-05/0.2864, allocations: 43.83 kB / 1.244 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001641/0.2865, allocations: 108 kB / 1.244 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2865, allocations: 3.938 kB / 1.244 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.744e-06/0.2866, allocations: 0 / 1.244 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.2866, allocations: 3.938 kB / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005342/0.2871, allocations: 420.9 kB / 1.245 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.2871, allocations: 8.031 kB / 1.245 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.022e-05/0.2872, allocations: 30.75 kB / 1.245 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.2872, allocations: 12.89 kB / 1.245 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.2873, allocations: 172.3 kB / 1.245 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.2874, allocations: 8.375 kB / 1.245 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.2874, allocations: 12.31 kB / 1.245 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.2876, allocations: 62.22 kB / 1.245 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2876, allocations: 7.938 kB / 1.245 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.2876, allocations: 4 kB / 1.245 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.2876, allocations: 0 / 1.245 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.2878, allocations: 43.95 kB / 1.245 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004226/0.2882, allocations: 328.6 kB / 1.245 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.2884, allocations: 58.61 kB / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.2885, allocations: 36.95 kB / 1.245 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.2885, allocations: 4 kB / 1.245 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.2887, allocations: 91.38 kB / 1.246 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.2887, allocations: 4 kB / 1.246 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0003937/0.2891, allocations: 137.5 kB / 1.246 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.2892, allocations: 55.41 kB / 1.246 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.275e-05/0.2892, allocations: 113.8 kB / 1.246 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.2893, allocations: 37.69 kB / 1.246 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.314e-05/0.2893, allocations: 88.14 kB / 1.246 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.2894, allocations: 23.84 kB / 1.246 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.886e-05/0.2894, allocations: 41.69 kB / 1.246 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.2896, allocations: 326.7 kB / 1.246 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.2897, allocations: 51.95 kB / 1.246 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.2899, allocations: 84.25 kB / 1.246 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.2902, allocations: 141.8 kB / 1.247 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2902, allocations: 4 kB / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004108/0.2906, allocations: 203.2 kB / 1.247 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.2906, allocations: 33.7 kB / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2906, allocations: 0 / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2907, allocations: 7.984 kB / 1.247 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.794e-05/0.2907, allocations: 11.94 kB / 1.247 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.2908, allocations: 0 / 1.247 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.291, allocations: 52.03 kB / 1.247 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.291, allocations: 8 kB / 1.247 GB, free: 3.555 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 9.346e-05/0.2911, allocations: 125.8 kB / 1.247 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.26e-05/0.2911, allocations: 3.953 kB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.341e-05/0.2911, allocations: 12.38 kB / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.2911, allocations: 3.938 kB / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2911, allocations: 0 / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.2912, allocations: 0 / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004493/0.2916, allocations: 390.7 kB / 1.247 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2916, allocations: 0 / 1.247 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.124e-05/0.2917, allocations: 7.984 kB / 1.247 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2917, allocations: 0 / 1.247 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.2917, allocations: 0 / 1.247 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2917, allocations: 4 kB / 1.247 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2917, allocations: 0 / 1.247 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.292, allocations: 211.3 kB / 1.248 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.292, allocations: 85.06 kB / 1.248 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.2921, allocations: 4 kB / 1.248 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.828e-05/0.2921, allocations: 7.984 kB / 1.248 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.906e-05/0.2922, allocations: 15.91 kB / 1.248 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.2922, allocations: 4 kB / 1.248 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.199e-05/0.2923, allocations: 95.2 kB / 1.248 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2923, allocations: 4 kB / 1.248 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002335/0.2925, allocations: 27.94 kB / 1.248 GB, free: 2.473 MB / 0.9669 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 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.000576/0.2931, allocations: 0.7402 MB / 1.249 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003516/0.2934, allocations: 179.3 kB / 1.249 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2935, allocations: 0 / 1.249 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.2936, allocations: 39.97 kB / 1.249 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.2938, allocations: 21.8 kB / 1.249 GB, free: 1.461 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.2957, allocations: 1.692 MB / 1.25 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.296, allocations: 0.6885 MB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.996e-05/0.296, allocations: 7.859 kB / 1.251 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.929e-05/0.2961, allocations: 23.42 kB / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.2961, allocations: 0 / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.135/5.431, allocations: 2.548 MB / 1.254 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.81/23.24, allocations: 15.28 kB / 1.254 GB, free: 12.46 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches