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.004308/0.004308, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001105/0.001105, allocations: 197 kB / 16.67 MB, free: 5.973 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.16 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.579/2.579, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2426, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002122/0.2448, allocations: 1.208 MB / 1.167 GB, free: 6.105 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000721/0.2455, allocations: 383.1 kB / 1.168 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.207e-05/0.2456, allocations: 0 / 1.168 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.963e-05/0.2456, allocations: 0 / 1.168 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.797e-05/0.2456, allocations: 7.875 kB / 1.168 GB, free: 5.723 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.2461, allocations: 91.7 kB / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.704e-05/0.2462, allocations: 19.88 kB / 1.168 GB, free: 5.613 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.2462, allocations: 7.984 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.921e-05/0.2462, allocations: 8 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 2.825e-05/0.2463, allocations: 3.984 kB / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.2463, allocations: 3.938 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.2465, allocations: 91.91 kB / 1.168 GB, free: 5.5 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.276e-05/0.2465, allocations: 0 / 1.168 GB, free: 5.5 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.2465, allocations: 8 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.2467, allocations: 87.97 kB / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2467, allocations: 4 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of FrontEnd: time 8.61e-07/0.2467, allocations: 0 / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.147e-06/0.2467, allocations: 4 kB / 1.168 GB, free: 5.398 MB / 0.92 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.0004094/0.2471, allocations: 377 kB / 1.168 GB, free: 4.973 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.2472, allocations: 8.031 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.805e-05/0.2472, allocations: 34.75 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.284e-05/0.2473, allocations: 0.9375 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.792e-05/0.2474, allocations: 164.4 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.2474, allocations: 4.375 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.2474, allocations: 384 / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.2475, allocations: 46.25 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2475, allocations: 7.875 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.2475, allocations: 0 / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2476, allocations: 3.938 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.129e-05/0.2476, allocations: 7.984 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002797/0.2479, allocations: 256.9 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.247e-05/0.248, allocations: 34.52 kB / 1.169 GB, free: 4.305 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.711e-05/0.248, allocations: 28.92 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-06/0.248, allocations: 0 / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001296/0.2482, allocations: 59.34 kB / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.2482, allocations: 0 / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0001873/0.2484, allocations: 65.67 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.2484, allocations: 59.41 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.068e-05/0.2485, allocations: 101.8 kB / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.2485, allocations: 25.7 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.07e-05/0.2485, allocations: 84.14 kB / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.2485, allocations: 11.84 kB / 1.169 GB, free: 3.824 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.2486, allocations: 25.7 kB / 1.169 GB, free: 3.793 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.2487, allocations: 318.8 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.134e-05/0.2487, allocations: 8 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.712e-05/0.2488, allocations: 39.55 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.692e-05/0.2488, allocations: 43.38 kB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2488, allocations: 7.875 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001037/0.2489, allocations: 77.61 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.249, allocations: 4.062 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.249, allocations: 4 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.249, allocations: 4 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.527e-05/0.249, allocations: 8 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.2491, allocations: 3.938 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.808e-05/0.2491, allocations: 7.938 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.2491, allocations: 4 kB / 1.17 GB, free: 3.234 MB / 0.92 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 6.498e-05/0.2492, allocations: 117.8 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.2492, allocations: 0 / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.05e-05/0.2492, allocations: 7.562 kB / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2492, allocations: 0 / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.2492, allocations: 4 kB / 1.17 GB, free: 3.094 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2492, allocations: 0 / 1.17 GB, free: 3.094 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000232/0.2495, allocations: 298.5 kB / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2495, allocations: 0 / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.793e-05/0.2495, allocations: 7.938 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2495, allocations: 0 / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.2495, allocations: 320 / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.2495, allocations: 0 / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2495, allocations: 8 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000132/0.2497, allocations: 163.5 kB / 1.17 GB, free: 2.555 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.2497, allocations: 89 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.2497, allocations: 0 / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.192e-05/0.2498, allocations: 96 / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.2498, allocations: 11.97 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.2498, allocations: 4 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.996e-05/0.2499, allocations: 83.22 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2499, allocations: 0 / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002804/0.2501, allocations: 35.88 kB / 1.171 GB, free: 2.316 MB / 0.92 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.0005985/0.2508, allocations: 0.7552 MB / 1.171 GB, free: 1.547 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001011/0.2509, allocations: 35.92 kB / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2509, allocations: 0 / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.788e-05/0.2509, allocations: 19.98 kB / 1.171 GB, free: 1.492 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.2511, allocations: 0 / 1.171 GB, free: 1.492 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009256/0.2521, allocations: 1.257 MB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.2523, allocations: 0.6729 MB / 1.173 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.818e-05/0.2523, allocations: 3.984 kB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/0.2523, allocations: 18.06 kB / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.2523, allocations: 0 / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01636/0.2687, allocations: 1.902 MB / 1.175 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.405/7.674, allocations: 0 / 1.175 GB, free: 13.66 MB / 0.9356 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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:time,y