Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",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.0009892/0.0009892, allocations: 108 kB / 15.61 MB, free: 152 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.001007/0.001007, allocations: 197 kB / 16.53 MB, free: 6.664 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.539/2.539, allocations: 437.1 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 71.83 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6905/0.6919, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.003098/0.6951, allocations: 1.202 MB / 1.019 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008431/0.6959, allocations: 386.7 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.696, allocations: 0 / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.228e-05/0.696, allocations: 0 / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.106e-05/0.6961, allocations: 0 / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.6966, allocations: 103.6 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.726e-05/0.6967, allocations: 8 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.912e-05/0.6968, allocations: 3.984 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.342e-05/0.6968, allocations: 8 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.425e-05/0.6968, allocations: 11.92 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.6968, allocations: 0 / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002299/0.6971, allocations: 91.84 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.879e-05/0.6971, allocations: 7.984 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.6971, allocations: 7.938 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.6974, allocations: 79.89 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.6974, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.082e-06/0.6974, allocations: 4 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.6974, allocations: 0 / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005078/0.6979, allocations: 381.4 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.698, allocations: 8.031 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.339e-05/0.698, allocations: 34.75 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.186e-05/0.6981, allocations: 8.875 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.6982, allocations: 164.4 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.6982, allocations: 384 / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.6983, allocations: 12.38 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.6984, allocations: 34.25 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.6984, allocations: 7.938 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-06/0.6984, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.6984, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.579e-05/0.6985, allocations: 11.98 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003781/0.6989, allocations: 244.8 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.634e-05/0.699, allocations: 38.52 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.532e-05/0.699, allocations: 20.94 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.699, allocations: 0 / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.6992, allocations: 51.41 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.503e-06/0.6992, allocations: 7.938 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0002253/0.6995, allocations: 73.61 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.6995, allocations: 59.41 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.427e-05/0.6996, allocations: 93.84 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.6996, allocations: 29.7 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.776e-05/0.6997, allocations: 88.12 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.6997, allocations: 11.75 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.82e-05/0.6997, allocations: 25.72 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.6998, allocations: 314.8 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.185e-05/0.6999, allocations: 8.125 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.129e-05/0.6999, allocations: 39.41 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.475e-05/0.7, allocations: 47.38 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.7, allocations: 3.938 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001165/0.7001, allocations: 85.53 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.7001, allocations: 8 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.7002, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.7002, allocations: 3.938 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.059e-05/0.7002, allocations: 8 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.7002, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.405e-05/0.7003, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.7003, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.081e-05/0.7004, allocations: 117.8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.7004, allocations: 15.91 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.084e-05/0.7004, allocations: 3.562 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.7004, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.7004, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.7005, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.7007, allocations: 302.8 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.7007, allocations: 0 / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.902e-05/0.7008, allocations: 4 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.7008, allocations: 0 / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.7008, allocations: 4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.7008, allocations: 4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7008, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.7009, allocations: 163.4 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.701, allocations: 81.05 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.701, allocations: 4 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.713e-05/0.7011, allocations: 4 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.273e-05/0.7011, allocations: 7.922 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.7011, allocations: 4 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.29e-05/0.7011, allocations: 79.28 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.7011, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002897/0.7014, allocations: 31.94 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.0006484/0.7021, allocations: 0.763 MB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.7022, allocations: 48.03 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.7022, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.796e-05/0.7023, allocations: 15.98 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.7025, allocations: 5.125 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009814/0.7035, allocations: 1.254 MB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002071/0.7037, allocations: 0.6807 MB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.683e-05/0.7037, allocations: 0 / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.74e-05/0.7037, allocations: 19.42 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.7037, allocations: 0 / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.7199, allocations: 1.857 MB / 1.026 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.036/7.756, allocations: 10.7 kB / 1.026 GB, free: 8.844 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:p,seed,time,y