Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit2D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit2D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit2D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit2D",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.001684/0.001684, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 197.1 kB / 16.54 MB, free: 6.672 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.752/2.752, allocations: 469.4 MB / 0.742 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.84 kB / 0.9082 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2807, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit2D): time 0.002353/0.2831, allocations: 1.229 MB / 1.065 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008578/0.284, allocations: 440.2 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.643e-05/0.284, allocations: 0 / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.833e-05/0.284, allocations: 0 / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.957e-05/0.2841, allocations: 3.938 kB / 1.065 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.2846, allocations: 115.6 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.139e-05/0.2847, allocations: 27.86 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.076e-05/0.2847, allocations: 4 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.727e-05/0.2848, allocations: 11.97 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.209e-05/0.2848, allocations: 11.94 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.2848, allocations: 4 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.2851, allocations: 107.8 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.925e-05/0.2851, allocations: 7.984 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.069e-05/0.2851, allocations: 11.94 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.2853, allocations: 99.8 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2853, allocations: 0 / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.133e-06/0.2853, allocations: 4 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.2854, allocations: 4 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005083/0.2859, allocations: 387 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.2859, allocations: 8.031 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.489e-05/0.286, allocations: 42.73 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.286, allocations: 0.9375 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.2862, allocations: 172.3 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.2862, allocations: 384 / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.2862, allocations: 4.375 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.2864, allocations: 54.17 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.2864, allocations: 3.938 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.2864, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2864, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.292e-05/0.2864, allocations: 8 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003524/0.2868, allocations: 245 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.956e-05/0.2869, allocations: 42.44 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.774e-05/0.287, allocations: 24.97 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.287, allocations: 0 / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001811/0.2872, allocations: 59.39 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.2872, allocations: 0 / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0002298/0.2874, allocations: 81.61 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.2875, allocations: 51.41 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.625e-05/0.2876, allocations: 109.8 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.2876, allocations: 29.7 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.25e-05/0.2876, allocations: 92.03 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.2877, allocations: 15.75 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.541e-05/0.2877, allocations: 25.7 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.2879, allocations: 310.8 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.349e-05/0.2879, allocations: 15.98 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.575e-05/0.288, allocations: 40.3 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.824e-05/0.2881, allocations: 56.22 kB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2881, allocations: 4.125 kB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001615/0.2882, allocations: 81.62 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.2883, allocations: 17.17 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.2883, allocations: 3.938 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.2883, allocations: 4.5 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.244e-05/0.2884, allocations: 8 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.2884, allocations: 3.938 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.606e-05/0.2885, allocations: 4 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.2885, allocations: 8 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (9): * Single equations (assignments): 9 * 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 0.0001072/0.2886, allocations: 115.5 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.997e-05/0.2886, allocations: 15.92 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.2887, allocations: 7.969 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2887, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2887, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2887, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002973/0.289, allocations: 314.4 kB / 1.068 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.289, allocations: 0 / 1.068 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.626e-05/0.289, allocations: 4 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.289, allocations: 4 kB / 1.068 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.2891, allocations: 0 / 1.068 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2891, allocations: 4 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2891, allocations: 0 / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.2892, allocations: 171.4 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.883e-05/0.2893, allocations: 77.11 kB / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.2893, allocations: 4 kB / 1.068 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.925e-05/0.2894, allocations: 3.984 kB / 1.068 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.2894, allocations: 4.031 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.2894, allocations: 4 kB / 1.068 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.039e-05/0.2895, allocations: 87.28 kB / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2895, allocations: 0 / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003057/0.2898, allocations: 39.92 kB / 1.068 GB, free: 9.289 MB / 0.8262 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 (6): * Single equations (assignments): 4 * 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.0006704/0.2905, allocations: 0.7812 MB / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001325/0.2906, allocations: 47.91 kB / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2906, allocations: 0 / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.461e-05/0.2907, allocations: 19.94 kB / 1.069 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.2909, allocations: 4 kB / 1.069 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.2919, allocations: 1.3 MB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.2922, allocations: 0.6807 MB / 1.071 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.052e-05/0.2923, allocations: 11.98 kB / 1.071 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.2923, allocations: 15.42 kB / 1.071 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of SimCode: time 2.8e-07/0.2923, allocations: 4 kB / 1.071 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.3108, allocations: 2.069 MB / 1.073 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.838/8.148, allocations: 0 / 1.073 GB, free: 4.301 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D_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_Logit2D.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_Logit2D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit2D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:time,y