Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic") translateModel(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 107.9 kB / 16.37 MB, free: 6.477 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.002121/0.002121, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.293/2.293, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001544, allocations: 71.23 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3158, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic): time 0.002364/0.3182, allocations: 1.227 MB / 0.9523 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009116/0.3192, allocations: 472.5 kB / 0.9528 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.845e-05/0.3192, allocations: 0 / 0.9528 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.941e-05/0.3192, allocations: 0 / 0.9528 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.344e-05/0.3193, allocations: 3.938 kB / 0.9528 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.3198, allocations: 115.6 kB / 0.9529 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.813e-05/0.3199, allocations: 23.86 kB / 0.9529 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.327e-05/0.32, allocations: 4 kB / 0.9529 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.371e-05/0.32, allocations: 4 kB / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.611e-05/0.32, allocations: 15.92 kB / 0.9529 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.32, allocations: 0 / 0.9529 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.3202, allocations: 103.8 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.778e-05/0.3203, allocations: 7.984 kB / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.992e-05/0.3203, allocations: 7.938 kB / 0.953 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.3205, allocations: 99.8 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3205, allocations: 4 kB / 0.9531 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3205, allocations: 0 / 0.9531 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.3205, allocations: 4 kB / 0.9531 GB, free: 5.977 MB / 0.7325 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.0005139/0.321, allocations: 389 kB / 0.9535 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3211, allocations: 8.031 kB / 0.9535 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.353e-05/0.3211, allocations: 8.844 kB / 0.9535 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.3213, allocations: 164.4 kB / 0.9537 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.3213, allocations: 4.375 kB / 0.9537 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.3213, allocations: 8.312 kB / 0.9537 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.3214, allocations: 38.25 kB / 0.9537 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3215, allocations: 4.188 kB / 0.9537 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.3215, allocations: 3.938 kB / 0.9537 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3215, allocations: 3.938 kB / 0.9537 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.258e-05/0.3215, allocations: 4 kB / 0.9537 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.3217, allocations: 157.7 kB / 0.9539 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.996e-05/0.3218, allocations: 30.56 kB / 0.9539 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.662e-05/0.3219, allocations: 24.88 kB / 0.954 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.3219, allocations: 0 / 0.954 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000142/0.322, allocations: 59.41 kB / 0.954 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.253e-06/0.322, allocations: 0 / 0.954 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002255/0.3223, allocations: 69.52 kB / 0.9541 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.3223, allocations: 59.34 kB / 0.9541 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.212e-05/0.3224, allocations: 109.8 kB / 0.9542 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.3224, allocations: 25.7 kB / 0.9543 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.872e-05/0.3225, allocations: 84.14 kB / 0.9543 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.3225, allocations: 11.84 kB / 0.9544 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/0.3226, allocations: 21.7 kB / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3227, allocations: 314.8 kB / 0.9547 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.444e-05/0.3227, allocations: 11.98 kB / 0.9547 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.767e-05/0.3228, allocations: 35.44 kB / 0.9547 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.788e-05/0.3228, allocations: 43.36 kB / 0.9548 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3228, allocations: 0 / 0.9548 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001019/0.3229, allocations: 69.53 kB / 0.9548 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.323, allocations: 11.97 kB / 0.9548 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.323, allocations: 8 kB / 0.9548 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.323, allocations: 0 / 0.9548 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.951e-05/0.3231, allocations: 15.94 kB / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.3231, allocations: 0 / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.505e-05/0.3231, allocations: 0 / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.3231, allocations: 8.141 kB / 0.9549 GB, free: 3.949 MB / 0.7325 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 (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 (7): * Single equations (assignments): 7 * 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 0.0001124/0.3232, allocations: 115.8 kB / 0.955 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.387e-05/0.3233, allocations: 7.938 kB / 0.955 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.3233, allocations: 7.906 kB / 0.955 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3233, allocations: 4 kB / 0.955 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3233, allocations: 0 / 0.955 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3233, allocations: 0 / 0.955 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.3235, allocations: 157.7 kB / 0.9551 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3235, allocations: 3.984 kB / 0.9551 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.519e-05/0.3235, allocations: 4 kB / 0.9552 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3235, allocations: 3.938 kB / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.3235, allocations: 0 / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3235, allocations: 0 / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3235, allocations: 0 / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.3237, allocations: 97.19 kB / 0.9553 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.141e-05/0.3237, allocations: 81.05 kB / 0.9553 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.3237, allocations: 4.188 kB / 0.9553 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.322e-05/0.3238, allocations: 4.047 kB / 0.9553 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.3238, allocations: 7.984 kB / 0.9553 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-06/0.3238, allocations: 3.984 kB / 0.9553 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.12e-05/0.3239, allocations: 83.28 kB / 0.9554 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3239, allocations: 0 / 0.9554 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002461/0.3241, allocations: 39.98 kB / 0.9555 GB, free: 3.234 MB / 0.7325 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 (4): * Single equations (assignments): 2 * 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.0003568/0.3245, allocations: 154 kB / 0.9556 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001137/0.3246, allocations: 27.92 kB / 0.9556 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3246, allocations: 0 / 0.9556 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.811e-05/0.3247, allocations: 16.19 kB / 0.9557 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.3248, allocations: 4 kB / 0.9557 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002621/0.3251, allocations: 124.8 kB / 0.9558 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.3254, allocations: 0.6805 MB / 0.9564 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.244e-05/0.3254, allocations: 4 kB / 0.9564 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.622e-05/0.3254, allocations: 7.438 kB / 0.9565 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.3254, allocations: 0 / 0.9565 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of Templates: time 0.003599/0.329, allocations: 1.074 MB / 0.9575 GB, free: 1.102 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.makefile (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.sim & ./Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:A,B,C,D,seed,t0,time,y