Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.BaseClasses.Validation.Linear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D") translateModel(Buildings.Occupants.BaseClasses.Validation.Linear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.389/1.389, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001292/0.001293, allocations: 183.3 kB / 326.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.732/1.732, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009709/0.0009709, allocations: 103.1 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004082/0.0004081, allocations: 9.062 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2285, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1671/0.3957, allocations: 131.9 MB / 1.029 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.396, allocations: 75.95 kB / 1.029 GB, free: 11.77 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.005738/0.4017, allocations: 2.151 MB / 1.031 GB, free: 9.613 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4017, allocations: 0 / 1.031 GB, free: 9.613 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.4017, allocations: 0 / 1.031 GB, free: 9.613 MB / 0.6823 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.0004126/0.4022, allocations: 394.8 kB / 1.031 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.4022, allocations: 8.031 kB / 1.031 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.4022, allocations: 0 / 1.031 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.4023, allocations: 167 kB / 1.032 GB, free: 8.965 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.4024, allocations: 4 kB / 1.032 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.4024, allocations: 7.938 kB / 1.032 GB, free: 8.953 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.518e-05/0.4025, allocations: 37.67 kB / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.4025, allocations: 0 / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.4025, allocations: 0 / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.4025, allocations: 0 / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.875e-05/0.4026, allocations: 4 kB / 1.032 GB, free: 8.906 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.4027, allocations: 173.5 kB / 1.032 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.345e-05/0.4028, allocations: 26.61 kB / 1.032 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-06/0.4028, allocations: 3.938 kB / 1.032 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001077/0.4029, allocations: 52.17 kB / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 2.955e-06/0.403, allocations: 0 / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0001897/0.4032, allocations: 73.61 kB / 1.032 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.4032, allocations: 51.41 kB / 1.032 GB, free: 8.445 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.051e-05/0.4033, allocations: 109.1 kB / 1.032 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.4033, allocations: 25.7 kB / 1.032 GB, free: 8.301 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.724e-05/0.4033, allocations: 84.14 kB / 1.032 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.4034, allocations: 3.906 kB / 1.032 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.4034, allocations: 4 kB / 1.032 GB, free: 8.207 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4035, allocations: 318.8 kB / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.86e-05/0.4035, allocations: 11.98 kB / 1.033 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.321e-05/0.4036, allocations: 31.44 kB / 1.033 GB, free: 7.832 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.046e-05/0.4036, allocations: 15.92 kB / 1.033 GB, free: 7.816 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4036, allocations: 0 / 1.033 GB, free: 7.816 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.943e-05/0.4037, allocations: 69.53 kB / 1.033 GB, free: 7.742 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.4037, allocations: 12.03 kB / 1.033 GB, free: 7.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.4037, allocations: 4 kB / 1.033 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.4038, allocations: 0 / 1.033 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.121e-05/0.4038, allocations: 8 kB / 1.033 GB, free: 7.719 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.4038, allocations: 0 / 1.033 GB, free: 7.719 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.561e-05/0.4039, allocations: 7.938 kB / 1.033 GB, free: 7.711 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.4039, allocations: 4.141 kB / 1.033 GB, free: 7.707 MB / 0.6823 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 7.768e-05/0.404, allocations: 121.8 kB / 1.033 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-06/0.404, allocations: 0 / 1.033 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.357e-05/0.404, allocations: 7.5 kB / 1.033 GB, free: 7.566 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.404, allocations: 4 kB / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.404, allocations: 0 / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.404, allocations: 0 / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.4042, allocations: 157.6 kB / 1.033 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.4042, allocations: 0 / 1.033 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-05/0.4042, allocations: 3.938 kB / 1.033 GB, free: 7.355 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.4042, allocations: 7.984 kB / 1.033 GB, free: 7.348 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.4042, allocations: 0 / 1.033 GB, free: 7.348 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.4042, allocations: 4 kB / 1.033 GB, free: 7.344 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4042, allocations: 0 / 1.033 GB, free: 7.344 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001228/0.4043, allocations: 89.02 kB / 1.033 GB, free: 7.238 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.512e-05/0.4044, allocations: 85.06 kB / 1.033 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.4044, allocations: 3.938 kB / 1.033 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.964e-05/0.4044, allocations: 0 / 1.033 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.307e-05/0.4045, allocations: 4 kB / 1.033 GB, free: 7.129 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.4045, allocations: 4 kB / 1.033 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.935e-05/0.4045, allocations: 83.27 kB / 1.033 GB, free: 7.043 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4045, allocations: 4 kB / 1.033 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002368/0.4048, allocations: 36 kB / 1.033 GB, free: 7.004 MB / 0.6823 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.000339/0.4051, allocations: 181 kB / 1.033 GB, free: 6.836 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001019/0.4052, allocations: 27.98 kB / 1.033 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.4052, allocations: 192 / 1.033 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.716e-05/0.4053, allocations: 19.94 kB / 1.033 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.943e-05/0.4054, allocations: 3.938 kB / 1.033 GB, free: 6.785 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002665/0.4056, allocations: 120.5 kB / 1.034 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.4059, allocations: 0.677 MB / 1.034 GB, free: 5.938 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.959e-05/0.4059, allocations: 7.984 kB / 1.034 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.26e-05/0.4059, allocations: 7.438 kB / 1.034 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of SimCode: time 2.41e-07/0.4059, allocations: 4 kB / 1.034 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of Templates: time 0.003073/0.409, allocations: 1.18 MB / 1.035 GB, free: 4.738 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.Linear1D_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_BaseClasses_Validation_Linear1D.csv","../files/Buildings_maint.7.0.x_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