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.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: 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.0009684/0.0009685, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007822/0.007822, allocations: 170.1 kB / 16.27 MB, free: 6.648 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.395/1.395, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.437/2.437, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005611/0.0005611, allocations: 12 kB / 0.8159 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7748/0.7754, allocations: 142.4 MB / 0.955 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic): time 0.001278/0.7767, allocations: 0.9541 MB / 0.956 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008701/0.7776, allocations: 458.8 kB / 0.9564 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.775e-05/0.7777, allocations: 1 kB / 0.9564 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.7777, allocations: 0 / 0.9564 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.119e-05/0.7778, allocations: 0 / 0.9564 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.7783, allocations: 93.62 kB / 0.9565 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.712e-05/0.7784, allocations: 17.64 kB / 0.9565 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.576e-05/0.7784, allocations: 5.156 kB / 0.9565 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.819e-05/0.7785, allocations: 12.86 kB / 0.9565 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.131e-05/0.7785, allocations: 15.56 kB / 0.9565 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.7785, allocations: 1.219 kB / 0.9565 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.7788, allocations: 105.7 kB / 0.9566 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.837e-05/0.7788, allocations: 1.469 kB / 0.9566 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.965e-05/0.7788, allocations: 41.62 kB / 0.9567 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.7791, allocations: 95.31 kB / 0.9568 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.7791, allocations: 5.422 kB / 0.9568 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.764e-06/0.7791, allocations: 0 / 0.9568 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.7791, allocations: 0 / 0.9568 GB, free: 6.41 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004133/0.7795, allocations: 380.3 kB / 0.9571 GB, free: 6 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.7796, allocations: 5.781 kB / 0.9571 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.763e-05/0.7796, allocations: 3.312 kB / 0.9572 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.704e-05/0.7797, allocations: 177.5 kB / 0.9573 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.7797, allocations: 10.19 kB / 0.9573 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.7798, allocations: 2.625 kB / 0.9573 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.7799, allocations: 35.81 kB / 0.9574 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.7799, allocations: 192 / 0.9574 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.7799, allocations: 7.938 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.7799, allocations: 1 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.329e-05/0.78, allocations: 3.906 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.7801, allocations: 162.3 kB / 0.9575 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.7803, allocations: 26.58 kB / 0.9576 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.636e-05/0.7803, allocations: 18.06 kB / 0.9576 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.7803, allocations: 1.062 kB / 0.9576 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/0.7805, allocations: 55.81 kB / 0.9576 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.713e-06/0.7805, allocations: 0 / 0.9576 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002123/0.7807, allocations: 75.2 kB / 0.9577 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.7807, allocations: 52.78 kB / 0.9578 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.495e-05/0.7808, allocations: 108.6 kB / 0.9579 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.698e-06/0.7808, allocations: 26.67 kB / 0.9579 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.592e-05/0.7809, allocations: 85.17 kB / 0.958 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.7809, allocations: 13.7 kB / 0.958 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.437e-05/0.7809, allocations: 15.81 kB / 0.958 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.931e-05/0.781, allocations: 313 kB / 0.9583 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.132e-05/0.781, allocations: 12.11 kB / 0.9583 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.022e-05/0.781, allocations: 30.78 kB / 0.9583 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.585e-05/0.7811, allocations: 49.39 kB / 0.9584 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7811, allocations: 0 / 0.9584 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001003/0.7812, allocations: 68.2 kB / 0.9584 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.7812, allocations: 9.656 kB / 0.9585 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.7812, allocations: 1.406 kB / 0.9585 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.7813, allocations: 1.344 kB / 0.9585 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.805e-05/0.7813, allocations: 13.84 kB / 0.9585 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.7814, allocations: 5.25 kB / 0.9585 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.855e-05/0.7814, allocations: 10.44 kB / 0.9585 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.7814, allocations: 3.188 kB / 0.9585 GB, free: 4.582 MB / 0.7169 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 5.774e-05/0.7815, allocations: 112.4 kB / 0.9586 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.7815, allocations: 5.562 kB / 0.9586 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.7815, allocations: 13.22 kB / 0.9586 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.7815, allocations: 0 / 0.9586 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.7815, allocations: 4 kB / 0.9586 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.7815, allocations: 1.312 kB / 0.9586 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.368e-05/0.7816, allocations: 166.8 kB / 0.9588 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.7816, allocations: 0 / 0.9588 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.763e-05/0.7817, allocations: 5.641 kB / 0.9588 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.227e-06/0.7817, allocations: 5.406 kB / 0.9588 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.7817, allocations: 0 / 0.9588 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.7817, allocations: 5.5 kB / 0.9588 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7817, allocations: 0 / 0.9588 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.7818, allocations: 82.95 kB / 0.9589 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.7819, allocations: 86.48 kB / 0.959 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.7819, allocations: 3.938 kB / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.172e-05/0.7819, allocations: 1.062 kB / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.92e-05/0.7819, allocations: 1.375 kB / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.7819, allocations: 5.453 kB / 0.959 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.575e-05/0.782, allocations: 83.66 kB / 0.959 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.782, allocations: 1.531 kB / 0.959 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002696/0.7823, allocations: 35.08 kB / 0.9591 GB, free: 3.941 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,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.0003439/0.7826, allocations: 164.5 kB / 0.9592 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001151/0.7827, allocations: 28.23 kB / 0.9593 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.7827, allocations: 0 / 0.9593 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.007e-05/0.7828, allocations: 15.91 kB / 0.9593 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.7829, allocations: 4.578 kB / 0.9593 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002281/0.7832, allocations: 126.2 kB / 0.9594 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.7833, allocations: 0.6785 MB / 0.9601 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.416e-05/0.7833, allocations: 2.75 kB / 0.9601 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.574e-05/0.7833, allocations: 12.81 kB / 0.9601 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.7833, allocations: 0 / 0.9601 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of Templates: time 0.003492/0.7868, allocations: 1.052 MB / 0.9611 GB, free: 2.41 MB / 0.7169 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 -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/jenkins/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