Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Occupants.BaseClasses.Validation.Logit2D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D") translateModel(Buildings.Occupants.BaseClasses.Validation.Logit2D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, 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.001595/0.001595, allocations: 194.3 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.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.849/2.849, allocations: 472.7 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 60.03 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3439, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit2D): time 0.002246/0.3462, allocations: 1.215 MB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008588/0.3471, allocations: 460.6 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.566e-05/0.3471, allocations: 0 / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.05e-05/0.3471, allocations: 0 / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.132e-05/0.3472, allocations: 7.938 kB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005078/0.3477, allocations: 107.6 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.102e-05/0.3478, allocations: 27.84 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.529e-05/0.3478, allocations: 4 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.465e-05/0.3479, allocations: 7.984 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.311e-05/0.3479, allocations: 15.92 kB / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.3479, allocations: 0 / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.3481, allocations: 99.91 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.629e-05/0.3482, allocations: 7.984 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.607e-05/0.3482, allocations: 19.92 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.3484, allocations: 95.75 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3484, allocations: 3.938 kB / 1.07 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3484, allocations: 0 / 1.07 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.3484, allocations: 0 / 1.07 GB, free: 8.305 MB / 0.8262 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.00046/0.3489, allocations: 389.3 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3489, allocations: 8.031 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.518e-05/0.349, allocations: 0.9375 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.3491, allocations: 176.4 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.3491, allocations: 4.375 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.3491, allocations: 4.375 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.3492, allocations: 38.25 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.3492, allocations: 4.188 kB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3493, allocations: 3.938 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.3493, allocations: 3.938 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.667e-05/0.3493, allocations: 7.984 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.3495, allocations: 157.6 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.752e-05/0.3495, allocations: 34.61 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/0.3496, allocations: 12.86 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.3496, allocations: 0 / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.3498, allocations: 67.42 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.302e-06/0.3498, allocations: 0 / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0002137/0.35, allocations: 73.62 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.35, allocations: 55.41 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.333e-05/0.3501, allocations: 105.8 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.3501, allocations: 25.7 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/0.3502, allocations: 88.14 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.3502, allocations: 15.73 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/0.3502, allocations: 21.72 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.151e-05/0.3503, allocations: 314.8 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.237e-05/0.3504, allocations: 7.984 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.222e-05/0.3504, allocations: 48.22 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.623e-05/0.3505, allocations: 56.22 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3505, allocations: 0 / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001023/0.3506, allocations: 81.56 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.3506, allocations: 9.656 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.3506, allocations: 0 / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3507, allocations: 4 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.026e-05/0.3508, allocations: 15.92 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3508, allocations: 0 / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.013e-05/0.3508, allocations: 7.906 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.3508, allocations: 4 kB / 1.072 GB, free: 6.234 MB / 0.8262 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 (y,$PRE.y,curSeed,$PRE.curSeed,$whenCondition1) * 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.118e-05/0.3509, allocations: 115.5 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/0.3509, allocations: 7.938 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.19e-05/0.3509, allocations: 11.48 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3509, allocations: 0 / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3509, allocations: 0 / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.351, allocations: 4.031 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.3511, allocations: 157.7 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3511, allocations: 3.938 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.971e-05/0.3511, allocations: 4 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.3511, allocations: 7.938 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.3511, allocations: 0.5 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3511, allocations: 0 / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3511, allocations: 3.984 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001295/0.3513, allocations: 93.03 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.233e-05/0.3513, allocations: 81.11 kB / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.3513, allocations: 3.938 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.324e-05/0.3514, allocations: 3.984 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.787e-05/0.3514, allocations: 12 kB / 1.072 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.3514, allocations: 0 / 1.072 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.332e-05/0.3514, allocations: 79.28 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3514, allocations: 0 / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002558/0.3517, allocations: 39.98 kB / 1.073 GB, free: 5.523 MB / 0.8262 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,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.000322/0.352, allocations: 165.8 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001153/0.3522, allocations: 39.92 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3522, allocations: 7.938 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.437e-05/0.3522, allocations: 15.98 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.3524, allocations: 0 / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002393/0.3526, allocations: 120.8 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000205/0.3528, allocations: 0.6809 MB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.299e-05/0.3529, allocations: 4 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.67e-05/0.3529, allocations: 11.44 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3529, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of Templates: time 0.003523/0.3564, allocations: 1.09 MB / 1.075 GB, free: 3.344 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.makefile (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.sim & ./Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_Logit2D.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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,t0,time,y