Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.001052/0.001052, 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.001046/0.001046, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.25/1.25, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.454/2.454, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 65.86 kB / 0.8992 GB, free: 36.9 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2429, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002594/0.2456, allocations: 1.552 MB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.2468, allocations: 0.7832 MB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.721e-05/0.2469, allocations: 0 / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.2469, allocations: 11.86 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.365e-05/0.247, allocations: 19.8 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004921/0.2475, allocations: 127.6 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.2477, allocations: 99.64 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.932e-05/0.2478, allocations: 15.98 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.2479, allocations: 47.84 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.051e-05/0.248, allocations: 39.83 kB / 1.056 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.248, allocations: 8 kB / 1.056 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.2482, allocations: 99.84 kB / 1.056 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.826e-05/0.2482, allocations: 27.89 kB / 1.056 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.865e-05/0.2483, allocations: 39.8 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.2485, allocations: 163.8 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2485, allocations: 4 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2485, allocations: 3.938 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.2486, allocations: 0 / 1.056 GB, free: 5.215 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007619/0.2493, allocations: 0.4962 MB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2494, allocations: 12.56 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.312e-05/0.2494, allocations: 38.73 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.2495, allocations: 12.75 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.2496, allocations: 180.2 kB / 1.057 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.2496, allocations: 12.36 kB / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.2497, allocations: 8.359 kB / 1.057 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.2499, allocations: 89.7 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.2499, allocations: 0 / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.2499, allocations: 0 / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.2499, allocations: 4 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.25, allocations: 43.97 kB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.2506, allocations: 332.7 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.2508, allocations: 86.7 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.489e-05/0.2509, allocations: 36.83 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.2509, allocations: 8 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.2511, allocations: 95.34 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.2512, allocations: 0 / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.000387/0.2515, allocations: 181.4 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.2516, allocations: 55.39 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.2517, allocations: 139.2 kB / 1.058 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.2517, allocations: 29.7 kB / 1.058 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.2518, allocations: 108 kB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.2518, allocations: 19.72 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.844e-05/0.2519, allocations: 33.7 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.252, allocations: 326.8 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.865e-05/0.2521, allocations: 31.97 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.737e-05/0.2522, allocations: 69.14 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.2523, allocations: 109 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.2523, allocations: 0 / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002446/0.2526, allocations: 141.6 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.2526, allocations: 5.25 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2526, allocations: 3.984 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2526, allocations: 4 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.2528, allocations: 19.92 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.2528, allocations: 7.984 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.581e-05/0.2529, allocations: 11.84 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.2529, allocations: 11.98 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 9.569e-05/0.253, allocations: 131.3 kB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.123e-05/0.253, allocations: 7.906 kB / 1.059 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003347/0.2534, allocations: 170.3 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.2534, allocations: 3.938 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.2534, allocations: 3.938 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.2534, allocations: 8 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005835/0.254, allocations: 462.2 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.254, allocations: 0 / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.256e-05/0.2541, allocations: 19.92 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2541, allocations: 0 / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.2541, allocations: 4 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.2541, allocations: 3.938 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2541, allocations: 0 / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.2544, allocations: 254.4 kB / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.417e-05/0.2545, allocations: 92.92 kB / 1.06 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.525e-05/0.2545, allocations: 0 / 1.06 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.2547, allocations: 11.92 kB / 1.06 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.2547, allocations: 15.98 kB / 1.06 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.2547, allocations: 4 kB / 1.06 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.432e-05/0.2548, allocations: 109.1 kB / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2548, allocations: 0 / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003011/0.2551, allocations: 40 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008016/0.2559, allocations: 0.8397 MB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002549/0.2562, allocations: 111.8 kB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.2562, allocations: 0 / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.2563, allocations: 58.92 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.2566, allocations: 25.95 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.2583, allocations: 1.671 MB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.2585, allocations: 0.7002 MB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.751e-05/0.2586, allocations: 12.42 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.899e-05/0.2587, allocations: 35.42 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2587, allocations: 0 / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4807/0.7394, allocations: 3.421 MB / 1.066 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.771/7.51, allocations: 9.219 kB / 1.066 GB, free: 9.91 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches