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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001269/0.001269, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001255/0.001256, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.301/1.301, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.682/2.682, allocations: 469.4 MB / 0.7427 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.58 kB / 0.9088 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2932, allocations: 159.1 MB / 1.064 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Linear1D): time 0.002409/0.2956, allocations: 1.206 MB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008418/0.2965, allocations: 426.6 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.091e-05/0.2965, allocations: 3.938 kB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.167e-05/0.2966, allocations: 0 / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.158e-05/0.2967, allocations: 0 / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005791/0.2972, allocations: 107.6 kB / 1.066 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.464e-05/0.2973, allocations: 19.98 kB / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.718e-05/0.2974, allocations: 4 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.095e-05/0.2974, allocations: 7.938 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.091e-05/0.2974, allocations: 11.98 kB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.2974, allocations: 0 / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.2977, allocations: 99.84 kB / 1.066 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.745e-05/0.2977, allocations: 3.938 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.821e-05/0.2977, allocations: 15.97 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.2979, allocations: 83.83 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2979, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2979, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.257e-06/0.298, allocations: 8 kB / 1.066 GB, free: 13.08 MB / 0.8419 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.0004803/0.2984, allocations: 381.4 kB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2985, allocations: 8.625 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.197e-05/0.2985, allocations: 4.844 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.2987, allocations: 176.3 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.2987, allocations: 384 / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.2987, allocations: 8.375 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.2988, allocations: 38.23 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.2988, allocations: 192 / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.2989, allocations: 7.938 kB / 1.067 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2989, allocations: 0 / 1.067 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.375e-05/0.2989, allocations: 4 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.2991, allocations: 157.7 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.41e-05/0.2991, allocations: 30.52 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.352e-05/0.2992, allocations: 16.94 kB / 1.067 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-06/0.2992, allocations: 0 / 1.067 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/0.2994, allocations: 59.41 kB / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 1.322e-06/0.2994, allocations: 0 / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0002007/0.2996, allocations: 69.61 kB / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.2996, allocations: 55.34 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.47e-05/0.2997, allocations: 105.8 kB / 1.067 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.2997, allocations: 25.7 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.045e-05/0.2997, allocations: 88.14 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.2998, allocations: 7.906 kB / 1.067 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.2998, allocations: 21.72 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.963e-05/0.2999, allocations: 314.8 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.984e-05/0.2999, allocations: 4 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.648e-05/0.3, allocations: 43.34 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.964e-05/0.3, allocations: 47.38 kB / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3, allocations: 0 / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.903e-05/0.3002, allocations: 65.62 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3002, allocations: 11.88 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3002, allocations: 4 kB / 1.068 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3002, allocations: 3.984 kB / 1.068 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.696e-05/0.3003, allocations: 12.03 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.3003, allocations: 4 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.441e-05/0.3003, allocations: 0 / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.3003, allocations: 4 kB / 1.068 GB, free: 11.08 MB / 0.8419 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 7.292e-05/0.3004, allocations: 117.8 kB / 1.068 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.341e-05/0.3004, allocations: 7.844 kB / 1.068 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.615e-05/0.3005, allocations: 11.91 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3005, allocations: 0 / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3005, allocations: 0 / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3005, allocations: 8 kB / 1.068 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.3006, allocations: 157.7 kB / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3006, allocations: 0 / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.211e-05/0.3006, allocations: 0 / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3006, allocations: 3.938 kB / 1.068 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.3007, allocations: 4 kB / 1.068 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3007, allocations: 0 / 1.068 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3007, allocations: 3.938 kB / 1.068 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.3008, allocations: 85.11 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.199e-05/0.3008, allocations: 81.02 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.3009, allocations: 11.94 kB / 1.068 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.257e-05/0.3009, allocations: 0 / 1.068 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.396e-05/0.3009, allocations: 3.984 kB / 1.068 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.3009, allocations: 4 kB / 1.068 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.275e-05/0.301, allocations: 75.28 kB / 1.068 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.301, allocations: 0 / 1.068 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002589/0.3012, allocations: 35.98 kB / 1.068 GB, free: 10.38 MB / 0.8419 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.0003406/0.3016, allocations: 166.7 kB / 1.069 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001213/0.3017, allocations: 35.92 kB / 1.069 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3017, allocations: 4 kB / 1.069 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.937e-05/0.3018, allocations: 11.94 kB / 1.069 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.3019, allocations: 9.875 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000276/0.3022, allocations: 127.3 kB / 1.069 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.3024, allocations: 0.6768 MB / 1.069 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.893e-05/0.3025, allocations: 7.438 kB / 1.069 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.3025, allocations: 0 / 1.069 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of Templates: time 0.00276/0.3052, allocations: 1.218 MB / 1.071 GB, free: 8.078 MB / 0.8419 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches