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.008346/0.008346, allocations: 102.4 kB / 15.73 MB, free: 6.008 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.001327/0.001327, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.53/2.53, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 59.91 kB / 1.018 GB, free: 9.949 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8238/0.8252, allocations: 151.6 MB / 1.166 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.003176/0.8284, allocations: 1.204 MB / 1.167 GB, free: 2.688 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.8295, allocations: 389.2 kB / 1.168 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.433e-05/0.8295, allocations: 4 kB / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.03e-05/0.8296, allocations: 0 / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.212e-05/0.8296, allocations: 0 / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006433/0.8303, allocations: 87.66 kB / 1.168 GB, free: 2.219 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.65e-05/0.8304, allocations: 15.98 kB / 1.168 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.926e-05/0.8304, allocations: 11.98 kB / 1.168 GB, free: 2.191 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.526e-05/0.8305, allocations: 3.938 kB / 1.168 GB, free: 2.188 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.689e-05/0.8305, allocations: 15.92 kB / 1.168 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.8305, allocations: 0 / 1.168 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000259/0.8308, allocations: 91.91 kB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.94e-05/0.8308, allocations: 0 / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.07e-05/0.8309, allocations: 7.938 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.8311, allocations: 87.75 kB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.8311, allocations: 0 / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8312, allocations: 0 / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.8312, allocations: 0 / 1.168 GB, free: 1.988 MB / 0.8887 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.0006107/0.8318, allocations: 375.5 kB / 1.168 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.8318, allocations: 8.922 kB / 1.168 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.933e-05/0.8319, allocations: 42.66 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.832, allocations: 0.9375 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.8321, allocations: 164.4 kB / 1.169 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.8322, allocations: 8.312 kB / 1.169 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.8322, allocations: 384 / 1.169 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.8323, allocations: 46.23 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.8324, allocations: 7.938 kB / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.8324, allocations: 0 / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.8324, allocations: 0 / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.979e-05/0.8325, allocations: 11.92 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000418/0.8329, allocations: 241 kB / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.833, allocations: 30.52 kB / 1.169 GB, free: 0.9062 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.606e-05/0.8331, allocations: 24.94 kB / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 7.965e-06/0.8331, allocations: 0 / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.8333, allocations: 63.34 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=5): time 1.633e-06/0.8333, allocations: 0 / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.0002808/0.8336, allocations: 69.67 kB / 1.169 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.8337, allocations: 55.41 kB / 1.169 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.483e-05/0.8338, allocations: 109.8 kB / 1.169 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.8338, allocations: 25.7 kB / 1.169 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.8339, allocations: 84.14 kB / 1.169 GB, free: 440 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.8339, allocations: 11.84 kB / 1.169 GB, free: 428 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.8339, allocations: 21.72 kB / 1.169 GB, free: 400 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.8341, allocations: 314.8 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.471e-05/0.8341, allocations: 12 kB / 1.17 GB, free: 64 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.113e-05/0.8342, allocations: 43.48 kB / 1.17 GB, free: 8 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.8343, allocations: 43.42 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.8343, allocations: 3.938 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001533/0.8345, allocations: 77.47 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.8345, allocations: 4 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.8345, allocations: 64 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.8346, allocations: 8 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.731e-05/0.8346, allocations: 8 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.8347, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.803e-05/0.8347, allocations: 7.938 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.8347, allocations: 7.984 kB / 1.17 GB, free: 15.83 MB / 0.9044 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.494e-05/0.8348, allocations: 119.9 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.8349, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.8349, allocations: 7.562 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.8349, allocations: 8.031 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.8349, allocations: 7.984 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.8349, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003263/0.8353, allocations: 298.5 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.8353, allocations: 0 / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.526e-05/0.8353, allocations: 7.938 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.8353, allocations: 0 / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.8353, allocations: 0 / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.8354, allocations: 320 / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.8354, allocations: 4 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/0.8356, allocations: 175.4 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.8356, allocations: 85.05 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.8357, allocations: 0 / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.112e-05/0.8358, allocations: 0 / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.375e-05/0.8358, allocations: 3.984 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.288e-06/0.8358, allocations: 4 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.995e-05/0.8359, allocations: 79.28 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8359, allocations: 96 / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004477/0.8363, allocations: 35.94 kB / 1.171 GB, free: 14.91 MB / 0.9044 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.0008844/0.8372, allocations: 0.7568 MB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001666/0.8374, allocations: 35.92 kB / 1.171 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8374, allocations: 0 / 1.171 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 6.362e-05/0.8375, allocations: 19.98 kB / 1.171 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.8378, allocations: 1.719 kB / 1.171 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.8393, allocations: 1.261 MB / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.8396, allocations: 0.6729 MB / 1.173 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.26e-05/0.8396, allocations: 7.984 kB / 1.173 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.4e-05/0.8397, allocations: 7.438 kB / 1.173 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of SimCode: time 4.71e-07/0.8397, allocations: 0 / 1.173 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.8638, allocations: 1.898 MB / 1.175 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/8.516, allocations: 19.7 kB / 1.175 GB, free: 10.23 MB / 0.9044 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