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.006446/0.006446, allocations: 97.36 kB / 15.73 MB, free: 5.988 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.001753/0.001753, allocations: 188.2 kB / 16.67 MB, free: 5.918 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.41/2.41, allocations: 437.1 MB / 0.7106 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 67.89 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2438, allocations: 151.6 MB / 1.166 GB, free: 7.363 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001952/0.2458, allocations: 1.217 MB / 1.167 GB, free: 6.129 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0006703/0.2464, allocations: 383.1 kB / 1.168 GB, free: 5.754 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.006e-05/0.2465, allocations: 3.938 kB / 1.168 GB, free: 5.75 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.2465, allocations: 0 / 1.168 GB, free: 5.75 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.41e-05/0.2465, allocations: 0 / 1.168 GB, free: 5.75 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004167/0.2469, allocations: 99.64 kB / 1.168 GB, free: 5.652 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.352e-05/0.247, allocations: 19.92 kB / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 2.887e-05/0.247, allocations: 0 / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.849e-05/0.2471, allocations: 8 kB / 1.168 GB, free: 5.625 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 2.552e-05/0.2471, allocations: 7.984 kB / 1.168 GB, free: 5.617 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 9.688e-06/0.2471, allocations: 0 / 1.168 GB, free: 5.617 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.2473, allocations: 91.84 kB / 1.168 GB, free: 5.527 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.152e-05/0.2473, allocations: 7.938 kB / 1.168 GB, free: 5.52 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.097e-05/0.2473, allocations: 4 kB / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.2475, allocations: 88.03 kB / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.2475, allocations: 0 / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.72e-07/0.2475, allocations: 4 kB / 1.168 GB, free: 5.426 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.437e-06/0.2475, allocations: 0 / 1.168 GB, free: 5.426 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.0004212/0.248, allocations: 381 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.248, allocations: 8.031 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.761e-05/0.248, allocations: 34.73 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.51e-05/0.2481, allocations: 4.938 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.2482, allocations: 164.3 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.2482, allocations: 384 / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.2482, allocations: 8.375 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.84e-05/0.2483, allocations: 38.25 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2483, allocations: 3.938 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.2483, allocations: 0 / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2484, allocations: 7.984 kB / 1.169 GB, free: 4.68 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.715e-05/0.2484, allocations: 4 kB / 1.169 GB, free: 4.676 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002879/0.2487, allocations: 252.9 kB / 1.169 GB, free: 4.379 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.415e-05/0.2488, allocations: 50.38 kB / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.145e-05/0.2488, allocations: 12.86 kB / 1.169 GB, free: 4.305 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.2488, allocations: 0 / 1.169 GB, free: 4.305 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001148/0.2489, allocations: 59.48 kB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.193e-06/0.249, allocations: 0 / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0001735/0.2491, allocations: 73.56 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.2492, allocations: 59.41 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.745e-05/0.2493, allocations: 97.84 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.2493, allocations: 25.7 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.536e-05/0.2493, allocations: 84.14 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.2493, allocations: 15.89 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.2494, allocations: 21.7 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2495, allocations: 318.8 kB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.755e-05/0.2495, allocations: 4.125 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.957e-05/0.2496, allocations: 39.42 kB / 1.17 GB, free: 3.445 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.2e-05/0.2496, allocations: 47.38 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2496, allocations: 3.938 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001079/0.2498, allocations: 73.7 kB / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.2498, allocations: 15.94 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-06/0.2498, allocations: 0 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.2498, allocations: 0 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.344e-05/0.2499, allocations: 15.98 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.2499, allocations: 0 / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.224e-05/0.2499, allocations: 7.953 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.2499, allocations: 4.25 kB / 1.17 GB, free: 3.262 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 7.244e-05/0.25, allocations: 113.8 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.086e-05/0.25, allocations: 4 kB / 1.17 GB, free: 3.137 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.75e-05/0.25, allocations: 7.562 kB / 1.17 GB, free: 3.125 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.25, allocations: 4 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.25, allocations: 0 / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.25, allocations: 0 / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.2503, allocations: 302.5 kB / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2503, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.41e-05/0.2503, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.2503, allocations: 4 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.2504, allocations: 0 / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2504, allocations: 3.938 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2504, allocations: 4 kB / 1.17 GB, free: 2.758 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001444/0.2505, allocations: 167.4 kB / 1.17 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.156e-05/0.2506, allocations: 85 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.2506, allocations: 0 / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.916e-05/0.2506, allocations: 4 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.651e-05/0.2507, allocations: 7.984 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.2507, allocations: 3.938 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.943e-05/0.2507, allocations: 83.28 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2507, allocations: 0 / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002512/0.251, allocations: 35.86 kB / 1.171 GB, free: 2.344 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.0006542/0.2516, allocations: 0.7597 MB / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 9.699e-05/0.2517, allocations: 32.12 kB / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.2517, allocations: 0 / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.285e-05/0.2518, allocations: 11.94 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.252, allocations: 8 kB / 1.171 GB, free: 1.516 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009907/0.253, allocations: 1.257 MB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.2533, allocations: 0.6768 MB / 1.173 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.756e-05/0.2533, allocations: 4 kB / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.116e-05/0.2533, allocations: 19.38 kB / 1.173 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.2533, allocations: 0 / 1.173 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.412/2.665, allocations: 1.911 MB / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.14/18.81, allocations: 0.5 kB / 1.175 GB, free: 13.68 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 & /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=400 --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