Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic",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.001016/0.001016, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008194/0.008194, allocations: 170 kB / 16.26 MB, free: 6.613 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.411/1.411, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.704/2.704, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003824, allocations: 10.16 kB / 0.9029 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.281, allocations: 159.6 MB / 1.059 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic): time 0.001158/0.2822, allocations: 0.9587 MB / 1.06 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008463/0.2831, allocations: 458.7 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.05e-05/0.2831, allocations: 0 / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.138e-05/0.2831, allocations: 0 / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.446e-05/0.2832, allocations: 3.938 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004561/0.2836, allocations: 91.77 kB / 1.06 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.49e-05/0.2837, allocations: 23.94 kB / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.2837, allocations: 0 / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.213e-05/0.2838, allocations: 11.98 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.042e-05/0.2838, allocations: 11.92 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.2838, allocations: 3.938 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.284, allocations: 99.84 kB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.2841, allocations: 11.97 kB / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.331e-05/0.2841, allocations: 33.64 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.2843, allocations: 99.8 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2843, allocations: 4 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2843, allocations: 4 kB / 1.061 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.2843, allocations: 0 / 1.061 GB, free: 3.027 MB / 0.8106 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.0004008/0.2847, allocations: 373.5 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2848, allocations: 15.91 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.78e-05/0.2848, allocations: 50.64 kB / 1.061 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.203e-05/0.2848, allocations: 0.9375 kB / 1.061 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.743e-05/0.285, allocations: 164.4 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.285, allocations: 384 / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.285, allocations: 4.375 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.501e-05/0.2851, allocations: 46.23 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.2851, allocations: 3.938 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-06/0.2851, allocations: 0 / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2851, allocations: 4 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.399e-05/0.2852, allocations: 4 kB / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002851/0.2855, allocations: 252.8 kB / 1.061 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.8e-05/0.2856, allocations: 42.5 kB / 1.061 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.255e-05/0.2856, allocations: 20.94 kB / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.2856, allocations: 0 / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001253/0.2858, allocations: 51.41 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.2858, allocations: 3.938 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0001997/0.286, allocations: 73.67 kB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.286, allocations: 59.41 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.766e-05/0.2861, allocations: 105.8 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.2861, allocations: 25.7 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.2862, allocations: 84.14 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.2862, allocations: 15.75 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.2862, allocations: 17.7 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.064e-05/0.2863, allocations: 318.8 kB / 1.062 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.093e-05/0.2863, allocations: 8 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.708e-05/0.2864, allocations: 39.42 kB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.957e-05/0.2864, allocations: 51.36 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2864, allocations: 3.938 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001078/0.2866, allocations: 73.55 kB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.2866, allocations: 16 kB / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2866, allocations: 0 / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.779e-06/0.2866, allocations: 0 / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.031e-05/0.2867, allocations: 15.92 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.2867, allocations: 4 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.605e-05/0.2867, allocations: 3.906 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.2867, allocations: 8 kB / 1.062 GB, free: 0.8398 MB / 0.8106 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 7.383e-05/0.2868, allocations: 113.7 kB / 1.062 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.101e-05/0.2868, allocations: 4 kB / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.15e-05/0.2869, allocations: 11.97 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2869, allocations: 0 / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2869, allocations: 0.5 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2869, allocations: 4 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.2871, allocations: 306.5 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2871, allocations: 0 / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.81e-05/0.2871, allocations: 0 / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.2872, allocations: 7.984 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.2872, allocations: 0 / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.2872, allocations: 0 / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2872, allocations: 7.938 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001467/0.2873, allocations: 163.4 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.238e-05/0.2874, allocations: 89.03 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.2874, allocations: 0 / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.958e-05/0.2874, allocations: 0 / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.2875, allocations: 4 kB / 1.063 GB, free: 44 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.2875, allocations: 4 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.253e-05/0.2875, allocations: 87.27 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2876, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002779/0.2878, allocations: 35.94 kB / 1.063 GB, free: 15.92 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 (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.000635/0.2885, allocations: 0.8024 MB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001005/0.2886, allocations: 31.92 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2886, allocations: 0 / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.539e-05/0.2886, allocations: 12 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.2888, allocations: 0 / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009886/0.2898, allocations: 1.283 MB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.2901, allocations: 0.677 MB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.192e-05/0.2901, allocations: 7.938 kB / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/0.2901, allocations: 15.44 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.2901, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01105/0.3012, allocations: 1.843 MB / 1.068 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.3014, allocations: 253.2 kB / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/1.993, allocations: 0 / 1.068 GB, free: 11.01 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:A,B,C,D,seed,time,x,y