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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Linear1D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Linear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Linear1D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Linear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007763/0.007763, allocations: 100.6 kB / 15.73 MB, free: 6.484 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.001942/0.001943, allocations: 189 kB / 16.68 MB, free: 6.367 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.674/2.674, allocations: 469.4 MB / 0.7421 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 59.91 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2657, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Linear1D): time 0.002039/0.2678, allocations: 1.225 MB / 1.221 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000788/0.2686, allocations: 412.5 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.277e-05/0.2687, allocations: 0 / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.693e-05/0.2687, allocations: 0 / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.754e-05/0.2688, allocations: 3.938 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.2693, allocations: 103.6 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.851e-05/0.2693, allocations: 19.98 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.488e-05/0.2694, allocations: 0 / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.239e-05/0.2694, allocations: 15.92 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.647e-05/0.2694, allocations: 7.984 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.2694, allocations: 4 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.2696, allocations: 99.84 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.856e-05/0.2697, allocations: 11.92 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.2697, allocations: 4 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.2699, allocations: 91.75 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2699, allocations: 4 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2699, allocations: 0 / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.299e-06/0.2699, allocations: 0 / 1.222 GB, free: 12.67 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.0004436/0.2704, allocations: 392.8 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2704, allocations: 15.97 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.307e-05/0.2705, allocations: 38.69 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.721e-05/0.2705, allocations: 4.938 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.2706, allocations: 160.4 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.2706, allocations: 4.375 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.2706, allocations: 384 / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.2707, allocations: 46.23 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.2708, allocations: 3.938 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.2708, allocations: 0 / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2708, allocations: 0 / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.109e-05/0.2708, allocations: 8 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003076/0.2711, allocations: 248.9 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.054e-05/0.2713, allocations: 38.5 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.663e-05/0.2713, allocations: 16.86 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-06/0.2713, allocations: 0 / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.2715, allocations: 59.48 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.372e-06/0.2715, allocations: 3.938 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0001999/0.2717, allocations: 77.62 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.2717, allocations: 51.41 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.904e-05/0.2718, allocations: 105.8 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.2718, allocations: 25.7 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.393e-05/0.2719, allocations: 84.12 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.2719, allocations: 27.83 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/0.2719, allocations: 17.72 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.272, allocations: 318.8 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.308e-05/0.2721, allocations: 8 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.399e-05/0.2721, allocations: 39.36 kB / 1.223 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.164e-05/0.2722, allocations: 47.44 kB / 1.223 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2722, allocations: 3.938 kB / 1.223 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001041/0.2723, allocations: 73.55 kB / 1.223 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.2723, allocations: 5.562 kB / 1.223 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2723, allocations: 7.938 kB / 1.223 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.2724, allocations: 0 / 1.223 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.039e-05/0.2724, allocations: 8 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.2724, allocations: 0 / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.183e-05/0.2725, allocations: 16.02 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.2725, allocations: 0 / 1.224 GB, free: 10.48 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 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.523e-05/0.2726, allocations: 127 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.2726, allocations: 4 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.097e-05/0.2726, allocations: 7.562 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.2726, allocations: 0 / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2726, allocations: 256 / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.2726, allocations: 0 / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.2729, allocations: 302.6 kB / 1.224 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2729, allocations: 4 kB / 1.224 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.847e-05/0.2729, allocations: 4 kB / 1.224 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2729, allocations: 0 / 1.224 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.273, allocations: 0 / 1.224 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.273, allocations: 3.938 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.273, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.2731, allocations: 167.4 kB / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.61e-05/0.2732, allocations: 85.05 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.2732, allocations: 4 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.155e-05/0.2732, allocations: 0 / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.182e-05/0.2733, allocations: 3.984 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.2733, allocations: 4 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.386e-05/0.2733, allocations: 83.56 kB / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2733, allocations: 0 / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002901/0.2736, allocations: 39.86 kB / 1.224 GB, free: 9.566 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,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.0006277/0.2742, allocations: 0.7724 MB / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001017/0.2744, allocations: 35.92 kB / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2744, allocations: 0 / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.803e-05/0.2744, allocations: 16 kB / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.2746, allocations: 5.844 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009561/0.2756, allocations: 1.273 MB / 1.226 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/0.2758, allocations: 0.6768 MB / 1.227 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.765e-05/0.2758, allocations: 8.25 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.51e-05/0.2759, allocations: 11.44 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of SimCode: time 1.443e-06/0.2759, allocations: 0 / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01688/0.2927, allocations: 2.01 MB / 1.229 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.539/7.831, allocations: 14.52 kB / 1.229 GB, free: 4.707 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Linear1D.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D_res.csv","/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) "" Variables in the reference:time,y Variables in the result:time,y