Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008746/0.0008746, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008636/0.0008636, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9091/0.9091, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.775/1.775, allocations: 377.8 MB / 0.6221 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.457e-06/3.457e-06, allocations: 0 / 0.981 GB, free: 2.57 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.243e-05/2.589e-05, allocations: 2.281 kB / 0.981 GB, free: 2.566 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001463/0.001489, allocations: 0.7566 MB / 0.9817 GB, free: 1.812 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.002814, allocations: 1.267 MB / 0.983 GB, free: 0.5312 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.833e-05/0.002872, allocations: 0 / 0.983 GB, free: 0.5312 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.916e-05/0.002912, allocations: 7.875 kB / 0.983 GB, free: 0.5234 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.721e-05/0.002989, allocations: 31.72 kB / 0.983 GB, free: 0.4922 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.003534, allocations: 262.5 kB / 0.9832 GB, free: 248 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.003771, allocations: 255.7 kB / 0.9835 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.003908, allocations: 33.25 kB / 0.9835 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.00405, allocations: 151.7 kB / 0.9837 GB, free: 15.81 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.004176, allocations: 83.78 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.004207, allocations: 24 kB / 0.9838 GB, free: 15.71 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.004276, allocations: 32 kB / 0.9838 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 3.429e-05/0.00431, allocations: 43.88 kB / 0.9838 GB, free: 15.63 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 7.623e-05/0.004386, allocations: 75.86 kB / 0.9839 GB, free: 15.56 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002535/0.00464, allocations: 287.2 kB / 0.9842 GB, free: 15.28 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.004643, allocations: 0 / 0.9842 GB, free: 15.28 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.282e-06/0.004644, allocations: 0 / 0.9842 GB, free: 15.28 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.004649, allocations: 0 / 0.9842 GB, free: 15.28 MB / 0.948 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.0004829/0.005132, allocations: 429.2 kB / 0.9846 GB, free: 14.81 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.005171, allocations: 11.97 kB / 0.9846 GB, free: 14.8 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.878e-05/0.00521, allocations: 42.73 kB / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.005267, allocations: 16.89 kB / 0.9847 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.00563, allocations: 189.7 kB / 0.9848 GB, free: 14.52 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.005646, allocations: 12.38 kB / 0.9849 GB, free: 14.51 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.79e-05/0.005674, allocations: 24.36 kB / 0.9849 GB, free: 14.49 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.005848, allocations: 130.1 kB / 0.985 GB, free: 14.36 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.005855, allocations: 4.188 kB / 0.985 GB, free: 14.35 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.005868, allocations: 4.359 kB / 0.985 GB, free: 14.35 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.005874, allocations: 7.938 kB / 0.985 GB, free: 14.34 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.2e-05/0.005966, allocations: 63.91 kB / 0.9851 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004511/0.006417, allocations: 391.4 kB / 0.9854 GB, free: 13.85 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.006548, allocations: 82.47 kB / 0.9855 GB, free: 13.76 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.98e-05/0.006588, allocations: 36.83 kB / 0.9856 GB, free: 13.72 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 6.623e-06/0.006595, allocations: 0 / 0.9856 GB, free: 13.72 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.006808, allocations: 131.3 kB / 0.9857 GB, free: 13.58 MB / 0.948 GB Notification: Performance of pre-optimization done (n=16): time 1.332e-06/0.006809, allocations: 0 / 0.9857 GB, free: 13.58 MB / 0.948 GB Notification: Performance of matching and sorting (n=16): time 0.0003231/0.007132, allocations: 249.4 kB / 0.9859 GB, free: 13.33 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.007172, allocations: 51.41 kB / 0.986 GB, free: 13.27 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.99e-05/0.007262, allocations: 149.7 kB / 0.9861 GB, free: 13.11 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.007284, allocations: 29.7 kB / 0.9861 GB, free: 13.08 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.007603, allocations: 112.7 kB / 0.9863 GB, free: 12.96 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.007624, allocations: 39.69 kB / 0.9863 GB, free: 12.93 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.007696, allocations: 69.67 kB / 0.9864 GB, free: 12.85 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.621e-05/0.007773, allocations: 322.8 kB / 0.9867 GB, free: 12.53 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.007892, allocations: 127.4 kB / 0.9868 GB, free: 12.39 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.008029, allocations: 189.3 kB / 0.987 GB, free: 12.17 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.008194, allocations: 217.7 kB / 0.9872 GB, free: 11.92 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.008196, allocations: 0 / 0.9872 GB, free: 11.92 MB / 0.948 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003279/0.008524, allocations: 372.1 kB / 0.9875 GB, free: 11.52 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.008566, allocations: 74.55 kB / 0.9876 GB, free: 11.44 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.008572, allocations: 4 kB / 0.9876 GB, free: 11.44 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.008586, allocations: 7.984 kB / 0.9876 GB, free: 11.43 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.842e-05/0.008605, allocations: 7.938 kB / 0.9876 GB, free: 11.42 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.008611, allocations: 4 kB / 0.9876 GB, free: 11.42 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.00879, allocations: 59.83 kB / 0.9877 GB, free: 11.36 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.008812, allocations: 19.98 kB / 0.9877 GB, free: 11.34 MB / 0.948 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 9.647e-05/0.008908, allocations: 141.7 kB / 0.9878 GB, free: 11.19 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.309e-05/0.008921, allocations: 15.89 kB / 0.9878 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.152e-05/0.008953, allocations: 16.72 kB / 0.9879 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.008955, allocations: 0 / 0.9879 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.00896, allocations: 0 / 0.9879 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.008964, allocations: 0 / 0.9879 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.009304, allocations: 461.4 kB / 0.9883 GB, free: 10.66 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.009305, allocations: 0 / 0.9883 GB, free: 10.66 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.276e-06/0.009313, allocations: 4 kB / 0.9883 GB, free: 10.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.009317, allocations: 4 kB / 0.9883 GB, free: 10.65 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.00933, allocations: 4 kB / 0.9883 GB, free: 10.65 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.009334, allocations: 3.984 kB / 0.9883 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.009335, allocations: 0 / 0.9883 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.009524, allocations: 294 kB / 0.9886 GB, free: 10.34 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.706e-06/0.009533, allocations: 15.83 kB / 0.9886 GB, free: 10.33 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.009547, allocations: 8 kB / 0.9886 GB, free: 10.32 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.881e-05/0.009586, allocations: 7.984 kB / 0.9886 GB, free: 10.31 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.009623, allocations: 11.98 kB / 0.9886 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.009641, allocations: 15.98 kB / 0.9887 GB, free: 10.29 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.509e-05/0.009676, allocations: 94.27 kB / 0.9887 GB, free: 10.2 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.009676, allocations: 4 kB / 0.9888 GB, free: 10.19 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002028/0.009879, allocations: 47.95 kB / 0.9888 GB, free: 10.14 MB / 0.948 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.0004428/0.01032, allocations: 0.8333 MB / 0.9896 GB, free: 9.285 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003027/0.01062, allocations: 336.3 kB / 0.9899 GB, free: 8.922 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.01063, allocations: 4 kB / 0.9899 GB, free: 8.918 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.807e-05/0.01068, allocations: 48.48 kB / 0.99 GB, free: 8.871 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002379/0.01092, allocations: 31.97 kB / 0.99 GB, free: 8.84 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.01258, allocations: 2.287 MB / 0.9922 GB, free: 6.355 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.35e-05/0.01265, allocations: 106.7 kB / 0.9923 GB, free: 6.23 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.681e-05/0.01268, allocations: 9.156 kB / 0.9924 GB, free: 6.219 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.927e-05/0.01273, allocations: 40.48 kB / 0.9924 GB, free: 6.18 MB / 0.948 GB Notification: Performance of SimCode: time 9.52e-07/0.01273, allocations: 0 / 0.9924 GB, free: 6.18 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01966/0.0324, allocations: 4.514 MB / 0.9968 GB, free: 1.852 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.854/6.887, allocations: 10.97 kB / 0.9968 GB, free: 1.844 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.024598315358162]