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.001093/0.001094, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001359/0.001359, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 223.3 MB / 240 MB, free: 5.32 MB / 190.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.523/2.523, allocations: 390.9 MB / 0.666 GB, free: 2.441 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003254/0.0003254, allocations: 11.98 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7632/0.7636, allocations: 142.4 MB / 0.9544 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic): time 0.001038/0.7647, allocations: 0.9477 MB / 0.9553 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006575/0.7653, allocations: 426.5 kB / 0.9558 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.434e-05/0.7654, allocations: 0 / 0.9558 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.372e-05/0.7654, allocations: 3.938 kB / 0.9558 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.416e-05/0.7654, allocations: 5.172 kB / 0.9558 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.7659, allocations: 89.19 kB / 0.9558 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.14e-05/0.7659, allocations: 19.36 kB / 0.9559 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.447e-05/0.766, allocations: 1.406 kB / 0.9559 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.261e-05/0.766, allocations: 9.203 kB / 0.9559 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.851e-05/0.766, allocations: 19.55 kB / 0.9559 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.7661, allocations: 1.281 kB / 0.9559 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001886/0.7662, allocations: 92.91 kB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.476e-05/0.7663, allocations: 5.453 kB / 0.956 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.65e-05/0.7663, allocations: 28.73 kB / 0.956 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.7664, allocations: 73.05 kB / 0.9561 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.7664, allocations: 0 / 0.9561 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7665, allocations: 0 / 0.9561 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.7665, allocations: 1.031 kB / 0.9561 GB, free: 6.445 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.0003477/0.7668, allocations: 380.3 kB / 0.9564 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.7669, allocations: 9.5 kB / 0.9565 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.018e-05/0.7669, allocations: 9.953 kB / 0.9565 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.091e-05/0.767, allocations: 169.3 kB / 0.9566 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.767, allocations: 1.188 kB / 0.9566 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.767, allocations: 2.375 kB / 0.9566 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.866e-05/0.7671, allocations: 46.78 kB / 0.9567 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.7671, allocations: 0 / 0.9567 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-06/0.7672, allocations: 0 / 0.9567 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.7672, allocations: 1.094 kB / 0.9567 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.015e-05/0.7672, allocations: 11.52 kB / 0.9567 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001182/0.7673, allocations: 154.5 kB / 0.9568 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.19e-05/0.7674, allocations: 34.17 kB / 0.9569 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.288e-05/0.7675, allocations: 15.42 kB / 0.9569 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.778e-06/0.7675, allocations: 0 / 0.9569 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001248/0.7676, allocations: 64.45 kB / 0.9569 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.7676, allocations: 0 / 0.9569 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001965/0.7678, allocations: 70.23 kB / 0.957 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.602e-05/0.7678, allocations: 52.31 kB / 0.9571 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.81e-05/0.7679, allocations: 113 kB / 0.9572 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.7679, allocations: 26.8 kB / 0.9572 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.18e-05/0.768, allocations: 85.27 kB / 0.9573 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.676e-05/0.768, allocations: 9.5 kB / 0.9573 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/0.768, allocations: 7.938 kB / 0.9573 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.988e-05/0.768, allocations: 320.9 kB / 0.9576 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.77e-05/0.768, allocations: 4.062 kB / 0.9576 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.007e-05/0.7681, allocations: 29.88 kB / 0.9576 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.704e-05/0.7681, allocations: 14.8 kB / 0.9576 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7681, allocations: 1.406 kB / 0.9576 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.747e-05/0.7682, allocations: 72.12 kB / 0.9577 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.7682, allocations: 4.75 kB / 0.9577 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.7682, allocations: 1.156 kB / 0.9577 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.7683, allocations: 2.031 kB / 0.9577 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.112e-05/0.7683, allocations: 6.938 kB / 0.9577 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.7683, allocations: 1.219 kB / 0.9577 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.675e-05/0.7684, allocations: 5.109 kB / 0.9577 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.7684, allocations: 6.266 kB / 0.9577 GB, free: 4.676 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 ($PRE.y,y,$PRE.curSeed,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.913e-05/0.7684, allocations: 121.5 kB / 0.9579 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.7685, allocations: 4.969 kB / 0.9579 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2e-05/0.7685, allocations: 4.812 kB / 0.9579 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.7685, allocations: 1.156 kB / 0.9579 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.7685, allocations: 0 / 0.9579 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.7685, allocations: 1.156 kB / 0.9579 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.251e-05/0.7686, allocations: 166.2 kB / 0.958 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.7686, allocations: 0 / 0.958 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.501e-05/0.7686, allocations: 2.156 kB / 0.958 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.7686, allocations: 4 kB / 0.958 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.7686, allocations: 1.297 kB / 0.958 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.7686, allocations: 1.188 kB / 0.958 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.7686, allocations: 0 / 0.958 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.7687, allocations: 90.45 kB / 0.9581 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.806e-05/0.7688, allocations: 83.2 kB / 0.9582 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.7688, allocations: 5.062 kB / 0.9582 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.297e-05/0.7688, allocations: 0 / 0.9582 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.7688, allocations: 13 kB / 0.9582 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.7689, allocations: 6.078 kB / 0.9582 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.482e-05/0.7689, allocations: 84 kB / 0.9583 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7689, allocations: 0 / 0.9583 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000245/0.7691, allocations: 35.77 kB / 0.9583 GB, free: 4.031 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002974/0.7694, allocations: 171.1 kB / 0.9585 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.697e-05/0.7696, allocations: 36.48 kB / 0.9585 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.7696, allocations: 0 / 0.9585 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.3e-05/0.7696, allocations: 8.625 kB / 0.9585 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.7697, allocations: 9.266 kB / 0.9586 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002125/0.77, allocations: 117.9 kB / 0.9587 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.677e-05/0.7701, allocations: 0.6834 MB / 0.9593 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.036e-05/0.7701, allocations: 2.094 kB / 0.9593 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.197e-05/0.7701, allocations: 8.531 kB / 0.9593 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.7701, allocations: 0 / 0.9593 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of Templates: time 0.003066/0.7732, allocations: 1.044 MB / 0.9604 GB, free: 2.496 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