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.007644/0.007644, allocations: 109.9 kB / 15.71 MB, free: 6.367 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.001578/0.001578, allocations: 191 kB / 16.64 MB, free: 6.309 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: 222.9 MB / 240.3 MB, free: 4.305 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.433/2.433, allocations: 390.3 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 62.44 kB / 0.9509 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3238, allocations: 140.4 MB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic): time 0.002179/0.326, allocations: 1.238 MB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008668/0.3269, allocations: 456.2 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.847e-05/0.3269, allocations: 4 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.825e-05/0.3269, allocations: 0 / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.922e-05/0.327, allocations: 3.938 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.3274, allocations: 119.6 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.881e-05/0.3274, allocations: 23.86 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.239e-05/0.3275, allocations: 4 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.3275, allocations: 4 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.604e-05/0.3275, allocations: 15.91 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.3275, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.3277, allocations: 103.8 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.142e-05/0.3277, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.325e-05/0.3278, allocations: 11.94 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.3279, allocations: 99.8 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3279, allocations: 4 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.513e-06/0.328, allocations: 0 / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.328, allocations: 0 / 1.09 GB, free: 15.37 MB / 0.8575 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.0003793/0.3283, allocations: 389 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 2.581e-05/0.3284, allocations: 8.031 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.608e-05/0.3284, allocations: 8.938 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.456e-05/0.3285, allocations: 164.4 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3285, allocations: 384 / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.3285, allocations: 12.25 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.747e-05/0.3286, allocations: 38.25 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.488e-06/0.3286, allocations: 192 / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.3287, allocations: 3.938 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-06/0.3287, allocations: 4 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.931e-05/0.3287, allocations: 8 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.3288, allocations: 161.6 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.575e-05/0.3289, allocations: 26.58 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.343e-05/0.329, allocations: 20.88 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.233e-06/0.329, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001059/0.3291, allocations: 51.41 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.173e-06/0.3291, allocations: 4 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0001674/0.3293, allocations: 73.59 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.3293, allocations: 51.41 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.641e-05/0.3294, allocations: 109.8 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.3294, allocations: 33.7 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.626e-05/0.3294, allocations: 80.14 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.3295, allocations: 19.83 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.3295, allocations: 17.72 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.391e-05/0.3296, allocations: 314.8 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.989e-05/0.3296, allocations: 15.97 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.078e-05/0.3297, allocations: 31.44 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.696e-05/0.3297, allocations: 47.36 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3297, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.445e-05/0.3298, allocations: 69.53 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.3299, allocations: 13.28 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.3299, allocations: 4.094 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.919e-06/0.3299, allocations: 4 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.213e-05/0.3299, allocations: 7.938 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.3299, allocations: 7.984 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.254e-05/0.33, allocations: 0 / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.33, allocations: 8.25 kB / 1.092 GB, free: 13.34 MB / 0.8575 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 6.245e-05/0.3301, allocations: 105.8 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.797e-05/0.3301, allocations: 15.84 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.375e-05/0.3301, allocations: 7.906 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3301, allocations: 4 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3301, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.3301, allocations: 4 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.3302, allocations: 157.7 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3302, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.244e-05/0.3303, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.3303, allocations: 7.938 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.3303, allocations: 3.938 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3303, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3303, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.3304, allocations: 93.05 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.524e-05/0.3305, allocations: 77.11 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.3305, allocations: 3.938 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.935e-05/0.3306, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.996e-05/0.3306, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.3306, allocations: 3.984 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.423e-05/0.3307, allocations: 83.28 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3307, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002461/0.3309, allocations: 35.98 kB / 1.092 GB, free: 12.64 MB / 0.8575 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.000297/0.3312, allocations: 171 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 9.651e-05/0.3313, allocations: 27.92 kB / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3314, allocations: 0 / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.35e-05/0.3314, allocations: 12.19 kB / 1.092 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.3315, allocations: 5.891 kB / 1.092 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001967/0.3317, allocations: 116.9 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.332, allocations: 0.6807 MB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.542e-05/0.332, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.397e-05/0.332, allocations: 11.44 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.332, allocations: 3.938 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of Templates: time 0.00286/0.3349, allocations: 1.077 MB / 1.094 GB, free: 10.5 MB / 0.8575 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