Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.126/2.126, allocations: 387.4 MB / 394.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 172.8 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009409/0.0009407, allocations: 95.83 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.854e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2402, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8629/1.103, allocations: 150.8 MB / 1.353 GB, free: 18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/1.104, allocations: 79.17 kB / 1.353 GB, free: 18 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.0106/1.114, allocations: 3.27 MB / 1.357 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.653e-06/1.114, allocations: 3.938 kB / 1.357 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.656e-06/1.114, allocations: 4.594 kB / 1.357 GB, free: 33.53 MB / 0.8386 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.0006525/1.115, allocations: 483.6 kB / 1.357 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/1.115, allocations: 7.688 kB / 1.357 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.563e-05/1.115, allocations: 12.38 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/1.115, allocations: 186.2 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/1.115, allocations: 5.375 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/1.115, allocations: 8.297 kB / 1.357 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001229/1.115, allocations: 40.12 kB / 1.357 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/1.115, allocations: 75.45 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/1.116, allocations: 0 / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/1.116, allocations: 0 / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/1.116, allocations: 4 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005211/1.116, allocations: 300.5 kB / 1.358 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001585/1.116, allocations: 67.42 kB / 1.358 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.185e-05/1.116, allocations: 40.33 kB / 1.358 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/1.116, allocations: 3.938 kB / 1.358 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/1.117, allocations: 89.91 kB / 1.358 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 2.124e-06/1.117, allocations: 0 / 1.358 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0003517/1.117, allocations: 126.8 kB / 1.358 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/1.117, allocations: 55.25 kB / 1.358 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/1.117, allocations: 121.5 kB / 1.358 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/1.117, allocations: 29.7 kB / 1.358 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.612e-05/1.117, allocations: 98.83 kB / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/1.117, allocations: 25.11 kB / 1.358 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/1.117, allocations: 0 / 1.358 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001193/1.117, allocations: 320.4 kB / 1.359 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.15e-05/1.117, allocations: 18.09 kB / 1.359 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.41e-05/1.117, allocations: 68.36 kB / 1.359 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.502e-05/1.118, allocations: 27.34 kB / 1.359 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/1.118, allocations: 0 / 1.359 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001688/1.118, allocations: 123.7 kB / 1.359 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/1.118, allocations: 3.875 kB / 1.359 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/1.118, allocations: 3.875 kB / 1.359 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/1.118, allocations: 96 / 1.359 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/1.118, allocations: 25.33 kB / 1.359 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/1.118, allocations: 5.188 kB / 1.359 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.594e-05/1.118, allocations: 10.61 kB / 1.359 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/1.118, allocations: 11.58 kB / 1.359 GB, free: 31.72 MB / 0.8386 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 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.871e-05/1.118, allocations: 109.5 kB / 1.359 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002119/1.118, allocations: 126.5 kB / 1.359 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/1.118, allocations: 15.16 kB / 1.359 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/1.119, allocations: 143.2 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/1.119, allocations: 0 / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/1.119, allocations: 7.922 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/1.119, allocations: 3.328 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/1.119, allocations: 395.5 kB / 1.36 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/1.119, allocations: 8.75 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.506e-05/1.119, allocations: 18.09 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/1.119, allocations: 3.75 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/1.119, allocations: 2.766 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/1.119, allocations: 4.5 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.119, allocations: 0 / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/1.12, allocations: 230.7 kB / 1.36 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/1.12, allocations: 84.83 kB / 1.36 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/1.12, allocations: 4 kB / 1.36 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/1.12, allocations: 10.78 kB / 1.36 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/1.12, allocations: 18.12 kB / 1.36 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/1.12, allocations: 3.906 kB / 1.36 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.719e-05/1.12, allocations: 99 kB / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.523e-06/1.12, allocations: 0 / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003874/1.12, allocations: 57.97 kB / 1.36 GB, free: 30.89 MB / 0.8386 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007858/1.121, allocations: 0.8292 MB / 1.361 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001583/1.121, allocations: 76.42 kB / 1.361 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/1.121, allocations: 0 / 1.361 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.226e-05/1.121, allocations: 47.16 kB / 1.361 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/1.122, allocations: 23.45 kB / 1.361 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005347/1.122, allocations: 183.1 kB / 1.361 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/1.123, allocations: 0.7111 MB / 1.362 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.788e-05/1.123, allocations: 10.97 kB / 1.362 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.632e-05/1.123, allocations: 27.2 kB / 1.362 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.123, allocations: 0 / 1.362 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/1.147, allocations: 2.802 MB / 1.365 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00024/1.148, allocations: 178 kB / 1.365 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.611/2.759, allocations: 0 / 1.365 GB, free: 28.94 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat does not exist to compare? outputFormat=mat