Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_9_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.001344/0.001344, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00157/0.00157, allocations: 195.1 kB / 16.26 MB, free: 6.625 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.306/1.306, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.278/2.278, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5181/0.5195, allocations: 140.4 MB / 0.9492 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001865/0.5214, allocations: 1.274 MB / 0.9505 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005548/0.5219, allocations: 382.2 kB / 0.9508 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.797e-05/0.522, allocations: 0 / 0.9508 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.932e-05/0.522, allocations: 0 / 0.9508 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.04e-05/0.522, allocations: 5.031 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.5224, allocations: 77.53 kB / 0.9509 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.643e-05/0.5225, allocations: 23.2 kB / 0.9509 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.5225, allocations: 1.406 kB / 0.9509 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.687e-05/0.5225, allocations: 9.422 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.269e-05/0.5226, allocations: 8.688 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.669e-06/0.5226, allocations: 1.125 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.5227, allocations: 89.78 kB / 0.951 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.5228, allocations: 5.297 kB / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.43e-05/0.5228, allocations: 10.64 kB / 0.951 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001349/0.5229, allocations: 81.08 kB / 0.9511 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.5229, allocations: 1.406 kB / 0.9511 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.392e-06/0.5229, allocations: 4 kB / 0.9511 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.489e-06/0.523, allocations: 0 / 0.9511 GB, free: 7.594 MB / 0.7169 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.0003442/0.5233, allocations: 374.5 kB / 0.9515 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.5233, allocations: 9.812 kB / 0.9515 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.5234, allocations: 42.67 kB / 0.9515 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.5234, allocations: 4.219 kB / 0.9515 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.553e-05/0.5235, allocations: 160.4 kB / 0.9517 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.5235, allocations: 2.125 kB / 0.9517 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.5235, allocations: 3.094 kB / 0.9517 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.788e-05/0.5236, allocations: 50.95 kB / 0.9517 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.5236, allocations: 4.906 kB / 0.9518 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.5236, allocations: 3.938 kB / 0.9518 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.5236, allocations: 0.9688 kB / 0.9518 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.946e-05/0.5237, allocations: 4.188 kB / 0.9518 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002188/0.5239, allocations: 239.2 kB / 0.952 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.345e-05/0.524, allocations: 45.69 kB / 0.952 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.914e-05/0.524, allocations: 12.27 kB / 0.952 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.524, allocations: 0 / 0.952 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000104/0.5241, allocations: 65.92 kB / 0.9521 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.283e-06/0.5242, allocations: 0 / 0.9521 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001634/0.5243, allocations: 71.61 kB / 0.9522 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.5244, allocations: 56.47 kB / 0.9522 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.713e-05/0.5244, allocations: 96.89 kB / 0.9523 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.5244, allocations: 27.14 kB / 0.9523 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.151e-05/0.5244, allocations: 84.14 kB / 0.9524 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.5244, allocations: 26.41 kB / 0.9525 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-05/0.5245, allocations: 19.91 kB / 0.9525 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.203e-05/0.5245, allocations: 320.1 kB / 0.9528 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.9e-05/0.5245, allocations: 12.83 kB / 0.9528 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.659e-05/0.5246, allocations: 36.47 kB / 0.9528 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.521e-05/0.5246, allocations: 48.92 kB / 0.9529 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5246, allocations: 5.25 kB / 0.9529 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.275e-05/0.5247, allocations: 70.73 kB / 0.9529 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.5247, allocations: 8.5 kB / 0.953 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.5247, allocations: 5.859 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/0.5248, allocations: 1.312 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.05e-05/0.5248, allocations: 7.062 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.5248, allocations: 5.344 kB / 0.953 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.185e-05/0.5248, allocations: 6.812 kB / 0.953 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-06/0.5249, allocations: 2.938 kB / 0.953 GB, free: 5.629 MB / 0.7169 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 4.207e-05/0.5249, allocations: 116.4 kB / 0.9531 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.5249, allocations: 1.438 kB / 0.9531 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.642e-05/0.5249, allocations: 15.48 kB / 0.9531 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.5249, allocations: 1.375 kB / 0.9531 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.5249, allocations: 0 / 0.9531 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.525, allocations: 3.938 kB / 0.9531 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.5251, allocations: 300.2 kB / 0.9534 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.5251, allocations: 0 / 0.9534 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.43e-05/0.5251, allocations: 3.156 kB / 0.9534 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.5252, allocations: 5.609 kB / 0.9534 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.5252, allocations: 0 / 0.9534 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5252, allocations: 5.25 kB / 0.9534 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.5252, allocations: 0 / 0.9534 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.517e-05/0.5253, allocations: 159.3 kB / 0.9536 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.321e-05/0.5253, allocations: 85.03 kB / 0.9536 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.5253, allocations: 1.844 kB / 0.9536 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.949e-05/0.5254, allocations: 4.125 kB / 0.9537 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.5254, allocations: 1.469 kB / 0.9537 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.5254, allocations: 1.562 kB / 0.9537 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.652e-05/0.5254, allocations: 85.91 kB / 0.9537 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.31e-07/0.5254, allocations: 0 / 0.9537 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002558/0.5257, allocations: 36.67 kB / 0.9538 GB, free: 4.805 MB / 0.7169 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.0004312/0.5261, allocations: 0.7552 MB / 0.9545 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.951e-05/0.5262, allocations: 35.83 kB / 0.9545 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.5262, allocations: 0 / 0.9545 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.248e-05/0.5263, allocations: 9.969 kB / 0.9546 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.5265, allocations: 10.42 kB / 0.9546 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000643/0.5271, allocations: 1.259 MB / 0.9558 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.077e-05/0.5272, allocations: 0.6819 MB / 0.9565 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.866e-05/0.5273, allocations: 6.344 kB / 0.9565 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.221e-05/0.5273, allocations: 10.25 kB / 0.9565 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.5273, allocations: 0 / 0.9565 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009742/0.537, allocations: 1.789 MB / 0.9582 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001259/0.5372, allocations: 255.3 kB / 0.9585 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.562/2.099, allocations: 0 / 0.9585 GB, free: 0.9062 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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