Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.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.Logit2D,fileNamePrefix="Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit2D,fileNamePrefix="Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D",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.001187/0.001187, 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.001153/0.001153, allocations: 194.6 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.217/1.217, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.11/2.11, allocations: 390.2 MB / 0.6647 GB, free: 440 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 63.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4888/0.4899, allocations: 140.4 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit2D): time 0.001731/0.4917, allocations: 1.225 MB / 0.9509 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006041/0.4923, allocations: 452 kB / 0.9513 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.39e-05/0.4924, allocations: 1.531 kB / 0.9513 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.195e-05/0.4924, allocations: 0 / 0.9513 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.367e-05/0.4924, allocations: 3.938 kB / 0.9513 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.4928, allocations: 106.5 kB / 0.9514 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.48e-05/0.4929, allocations: 25.89 kB / 0.9515 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.4929, allocations: 2.656 kB / 0.9515 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.973e-05/0.493, allocations: 17.14 kB / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.515e-05/0.493, allocations: 10.67 kB / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.493, allocations: 1.25 kB / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001681/0.4932, allocations: 109.7 kB / 0.9516 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.412e-05/0.4932, allocations: 5.578 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.453e-05/0.4932, allocations: 10.88 kB / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.4934, allocations: 100.5 kB / 0.9517 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.4934, allocations: 0 / 0.9517 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.012e-06/0.4934, allocations: 1.312 kB / 0.9517 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.526e-06/0.4934, allocations: 4 kB / 0.9517 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000319/0.4937, allocations: 390.5 kB / 0.9521 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.4938, allocations: 9.312 kB / 0.9521 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.651e-05/0.4938, allocations: 39.95 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.358e-05/0.4938, allocations: 7.375 kB / 0.9521 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.3e-05/0.4939, allocations: 166.7 kB / 0.9523 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.4939, allocations: 5.688 kB / 0.9523 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.4939, allocations: 7.125 kB / 0.9523 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.873e-05/0.494, allocations: 50.11 kB / 0.9524 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.494, allocations: 3.938 kB / 0.9524 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.494, allocations: 3.938 kB / 0.9524 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.494, allocations: 5.219 kB / 0.9524 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.225e-05/0.4941, allocations: 5.062 kB / 0.9524 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002112/0.4943, allocations: 245.3 kB / 0.9526 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.612e-05/0.4944, allocations: 42.59 kB / 0.9527 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.515e-05/0.4944, allocations: 22.31 kB / 0.9527 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.4944, allocations: 1.406 kB / 0.9527 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001017/0.4945, allocations: 53.25 kB / 0.9527 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.4945, allocations: 1.125 kB / 0.9527 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0001764/0.4947, allocations: 85.83 kB / 0.9528 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.203e-05/0.4947, allocations: 61.06 kB / 0.9529 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.73e-05/0.4948, allocations: 104.1 kB / 0.953 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.083e-06/0.4948, allocations: 25.7 kB / 0.953 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.551e-05/0.4948, allocations: 82.33 kB / 0.9531 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.4948, allocations: 14.12 kB / 0.9531 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.4949, allocations: 23.98 kB / 0.9531 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.164e-05/0.4949, allocations: 316 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.016e-05/0.4949, allocations: 10.42 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.847e-05/0.495, allocations: 40.2 kB / 0.9535 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.998e-05/0.495, allocations: 62.47 kB / 0.9535 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.495, allocations: 3.938 kB / 0.9535 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 9.082e-05/0.4951, allocations: 90.36 kB / 0.9536 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.4951, allocations: 6.188 kB / 0.9536 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.4951, allocations: 1.125 kB / 0.9536 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.4952, allocations: 1 kB / 0.9536 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.455e-05/0.4952, allocations: 17.06 kB / 0.9536 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.4952, allocations: 1.406 kB / 0.9536 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.677e-05/0.4953, allocations: 10.78 kB / 0.9536 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.4953, allocations: 2.594 kB / 0.9536 GB, free: 5.574 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (9): * Single equations (assignments): 9 * 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.286e-05/0.4953, allocations: 125.4 kB / 0.9538 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.109e-05/0.4953, allocations: 2.5 kB / 0.9538 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.777e-05/0.4954, allocations: 3.969 kB / 0.9538 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.4954, allocations: 1.406 kB / 0.9538 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.4954, allocations: 0 / 0.9538 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.4954, allocations: 5.25 kB / 0.9538 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.4955, allocations: 317.3 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4955, allocations: 3.938 kB / 0.9541 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-05/0.4956, allocations: 4.406 kB / 0.9541 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.4956, allocations: 5.406 kB / 0.9541 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.4956, allocations: 0 / 0.9541 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4956, allocations: 5.359 kB / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.4956, allocations: 0 / 0.9541 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.4957, allocations: 162.8 kB / 0.9542 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.273e-05/0.4957, allocations: 82.55 kB / 0.9543 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.4957, allocations: 5.422 kB / 0.9543 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.794e-05/0.4958, allocations: 5.719 kB / 0.9543 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.4958, allocations: 5.531 kB / 0.9543 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.4958, allocations: 1.344 kB / 0.9543 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.908e-05/0.4959, allocations: 87.98 kB / 0.9544 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4959, allocations: 0 / 0.9544 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002532/0.4961, allocations: 36 kB / 0.9545 GB, free: 4.734 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 (6): * Single equations (assignments): 4 * 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.000439/0.4966, allocations: 0.7777 MB / 0.9552 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001067/0.4967, allocations: 40.14 kB / 0.9553 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4967, allocations: 3.938 kB / 0.9553 GB, free: 4 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.688e-05/0.4967, allocations: 18.97 kB / 0.9553 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/0.4969, allocations: 8.422 kB / 0.9553 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006663/0.4976, allocations: 1.303 MB / 0.9566 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.479e-05/0.4977, allocations: 0.688 MB / 0.9572 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.804e-05/0.4977, allocations: 2 kB / 0.9572 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.145e-05/0.4977, allocations: 13.61 kB / 0.9573 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.4977, allocations: 1.094 kB / 0.9573 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01634/0.5141, allocations: 2.053 MB / 0.9593 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.702/8.216, allocations: 4.391 kB / 0.9593 GB, free: 0.8281 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_BaseClasses_Validation_Logit2D.fmu > Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_Logit2D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit2D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:A,B,C,seed,time,x1,x2,y