Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.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.Linear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D") translateModel(Buildings.Occupants.BaseClasses.Validation.Linear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006211/0.006211, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.0011/0.0011, allocations: 196.3 kB / 16.67 MB, free: 6.352 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.766/2.766, allocations: 472.6 MB / 0.7453 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 67.83 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.354, allocations: 159.9 MB / 1.226 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Linear1D): time 0.002388/0.3564, allocations: 1.229 MB / 1.227 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009827/0.3574, allocations: 406.5 kB / 1.227 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.103e-05/0.3575, allocations: 0 / 1.227 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.23e-05/0.3575, allocations: 7.938 kB / 1.227 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.385e-05/0.3576, allocations: 0 / 1.227 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006129/0.3582, allocations: 107.6 kB / 1.227 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.219e-05/0.3583, allocations: 15.94 kB / 1.227 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.849e-05/0.3584, allocations: 7.984 kB / 1.227 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.718e-05/0.3584, allocations: 11.94 kB / 1.227 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.589e-05/0.3585, allocations: 11.97 kB / 1.227 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.3585, allocations: 4 kB / 1.227 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.3587, allocations: 91.91 kB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.3587, allocations: 11.94 kB / 1.227 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.593e-05/0.3588, allocations: 7.922 kB / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.359, allocations: 95.75 kB / 1.228 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.359, allocations: 0 / 1.228 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.473e-06/0.359, allocations: 0 / 1.228 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.359, allocations: 0 / 1.228 GB, free: 7.199 MB / 0.9825 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.0005551/0.3596, allocations: 392.8 kB / 1.228 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.3596, allocations: 12.03 kB / 1.228 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.723e-05/0.3597, allocations: 8.891 kB / 1.228 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.3598, allocations: 160.4 kB / 1.228 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.3599, allocations: 8.359 kB / 1.228 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.3599, allocations: 384 / 1.228 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.36, allocations: 38.25 kB / 1.228 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.36, allocations: 4.188 kB / 1.228 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.36, allocations: 3.938 kB / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.36, allocations: 0 / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.718e-05/0.3601, allocations: 11.94 kB / 1.228 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.3603, allocations: 153.7 kB / 1.228 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.431e-05/0.3604, allocations: 30.61 kB / 1.228 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.135e-05/0.3604, allocations: 8.859 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.3604, allocations: 0 / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.3606, allocations: 63.42 kB / 1.228 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.283e-06/0.3606, allocations: 0 / 1.228 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0002148/0.3608, allocations: 69.61 kB / 1.228 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.3609, allocations: 55.41 kB / 1.229 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.023e-05/0.361, allocations: 106.1 kB / 1.229 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.361, allocations: 25.7 kB / 1.229 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.586e-05/0.361, allocations: 84.14 kB / 1.229 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.361, allocations: 11.89 kB / 1.229 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.3611, allocations: 25.66 kB / 1.229 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.669e-05/0.3612, allocations: 318.8 kB / 1.229 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.995e-05/0.3612, allocations: 8 kB / 1.229 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.717e-05/0.3613, allocations: 35.36 kB / 1.229 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.428e-05/0.3613, allocations: 51.47 kB / 1.229 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3613, allocations: 0 / 1.229 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.303e-05/0.3614, allocations: 73.5 kB / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3615, allocations: 7.938 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3615, allocations: 0 / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3615, allocations: 4 kB / 1.229 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.962e-05/0.3616, allocations: 7.984 kB / 1.229 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3616, allocations: 0 / 1.229 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.516e-05/0.3616, allocations: 12.05 kB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.3616, allocations: 4 kB / 1.229 GB, free: 5.184 MB / 0.9825 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 8.124e-05/0.3617, allocations: 114.3 kB / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.3617, allocations: 7.938 kB / 1.229 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.338e-05/0.3618, allocations: 3.5 kB / 1.229 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3618, allocations: 0 / 1.229 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3618, allocations: 3.984 kB / 1.229 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3618, allocations: 0 / 1.229 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.3619, allocations: 157.7 kB / 1.23 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3619, allocations: 4 kB / 1.23 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-05/0.3619, allocations: 4 kB / 1.23 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.3619, allocations: 3.938 kB / 1.23 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.362, allocations: 0 / 1.23 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.362, allocations: 0 / 1.23 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.362, allocations: 4 kB / 1.23 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.3621, allocations: 85.11 kB / 1.23 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.3621, allocations: 81.06 kB / 1.23 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.3622, allocations: 7.875 kB / 1.23 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.03e-05/0.3622, allocations: 4 kB / 1.23 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.3622, allocations: 7.984 kB / 1.23 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.3622, allocations: 0 / 1.23 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.599e-05/0.3623, allocations: 83.28 kB / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3623, allocations: 0 / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002512/0.3625, allocations: 35.86 kB / 1.23 GB, free: 4.488 MB / 0.9825 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.0003303/0.3629, allocations: 174.4 kB / 1.23 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001105/0.363, allocations: 27.92 kB / 1.23 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.363, allocations: 0 / 1.23 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.552e-05/0.363, allocations: 12 kB / 1.23 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.3632, allocations: 5.891 kB / 1.23 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002291/0.3634, allocations: 112.6 kB / 1.23 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.3636, allocations: 0.677 MB / 1.231 GB, free: 3.441 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.336e-05/0.3637, allocations: 8.234 kB / 1.231 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.539e-05/0.3637, allocations: 7.438 kB / 1.231 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.3637, allocations: 0 / 1.231 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of Templates: time 0.003308/0.367, allocations: 1.039 MB / 1.232 GB, free: 2.387 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.makefile (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.sim & ./Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_Linear1D.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:A,B,seed,t0,time,y