Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.331/2.331, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.00107/0.00107, allocations: 178.1 kB / 498.1 MB, free: 5.738 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.465/1.465, allocations: 223.2 MB / 0.7948 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008711/0.000871, allocations: 103.8 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.000347, allocations: 8.922 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2446, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1694/0.414, allocations: 151.4 MB / 1.371 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.4143, allocations: 83.95 kB / 1.371 GB, free: 10.54 MB / 0.8698 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.00958/0.4239, allocations: 3.201 MB / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.244e-06/0.4239, allocations: 0 / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.787e-06/0.4239, allocations: 4 kB / 1.374 GB, free: 7.328 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006381/0.4246, allocations: 490.2 kB / 1.374 GB, free: 6.789 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.4246, allocations: 8.031 kB / 1.374 GB, free: 6.781 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.731e-05/0.4247, allocations: 42.5 kB / 1.375 GB, free: 6.73 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.898e-05/0.4247, allocations: 15.84 kB / 1.375 GB, free: 6.715 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.4249, allocations: 167 kB / 1.375 GB, free: 6.512 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.961e-05/0.4249, allocations: 37.69 kB / 1.375 GB, free: 6.469 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.425, allocations: 4 kB / 1.375 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.4252, allocations: 77.64 kB / 1.375 GB, free: 6.383 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.4252, allocations: 7.938 kB / 1.375 GB, free: 6.375 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.4252, allocations: 0 / 1.375 GB, free: 6.375 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.4252, allocations: 4 kB / 1.375 GB, free: 6.371 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.4254, allocations: 55.92 kB / 1.375 GB, free: 6.316 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005671/0.426, allocations: 336.7 kB / 1.375 GB, free: 5.938 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.4262, allocations: 74.58 kB / 1.375 GB, free: 5.855 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.4263, allocations: 0 / 1.375 GB, free: 5.855 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.4265, allocations: 103.3 kB / 1.375 GB, free: 5.742 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.4265, allocations: 0 / 1.375 GB, free: 5.742 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0004747/0.427, allocations: 181.6 kB / 1.376 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.427, allocations: 55.41 kB / 1.376 GB, free: 5.492 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.264e-05/0.4271, allocations: 119.8 kB / 1.376 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.4272, allocations: 29.7 kB / 1.376 GB, free: 5.332 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.928e-05/0.4272, allocations: 96.36 kB / 1.376 GB, free: 5.23 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.4273, allocations: 23.86 kB / 1.376 GB, free: 5.207 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/0.4273, allocations: 0 / 1.376 GB, free: 5.207 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4274, allocations: 318.8 kB / 1.376 GB, free: 4.887 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.4275, allocations: 43.91 kB / 1.376 GB, free: 4.844 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.4276, allocations: 73.12 kB / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.4277, allocations: 35.98 kB / 1.376 GB, free: 4.719 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.4277, allocations: 0 / 1.376 GB, free: 4.719 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002846/0.428, allocations: 133.4 kB / 1.376 GB, free: 4.582 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.4281, allocations: 8 kB / 1.376 GB, free: 4.574 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.4281, allocations: 3.938 kB / 1.376 GB, free: 4.57 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.4281, allocations: 8.078 kB / 1.376 GB, free: 4.562 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.4282, allocations: 23.92 kB / 1.376 GB, free: 4.539 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.4282, allocations: 3.984 kB / 1.376 GB, free: 4.535 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.4284, allocations: 23.84 kB / 1.376 GB, free: 4.512 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.4284, allocations: 7.984 kB / 1.376 GB, free: 4.504 MB / 0.8698 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,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.309e-05/0.4285, allocations: 118.8 kB / 1.377 GB, free: 4.379 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.4285, allocations: 11.91 kB / 1.377 GB, free: 4.367 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/0.4285, allocations: 12.72 kB / 1.377 GB, free: 4.352 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.4286, allocations: 0 / 1.377 GB, free: 4.352 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.4286, allocations: 7.891 kB / 1.377 GB, free: 4.344 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4286, allocations: 3.984 kB / 1.377 GB, free: 4.34 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006055/0.4292, allocations: 426.4 kB / 1.377 GB, free: 3.867 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4292, allocations: 0 / 1.377 GB, free: 3.867 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.681e-05/0.4293, allocations: 11.98 kB / 1.377 GB, free: 3.855 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.556e-05/0.4293, allocations: 3.953 kB / 1.377 GB, free: 3.852 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.4293, allocations: 0 / 1.377 GB, free: 3.852 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.4293, allocations: 3.984 kB / 1.377 GB, free: 3.848 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4293, allocations: 0 / 1.377 GB, free: 3.848 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003308/0.4297, allocations: 235.5 kB / 1.377 GB, free: 3.602 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.4297, allocations: 85.02 kB / 1.377 GB, free: 3.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.4298, allocations: 7.953 kB / 1.377 GB, free: 3.492 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.4299, allocations: 11.98 kB / 1.377 GB, free: 3.48 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-05/0.43, allocations: 15.97 kB / 1.377 GB, free: 3.465 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.43, allocations: 8 kB / 1.377 GB, free: 3.457 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.761e-05/0.43, allocations: 97.66 kB / 1.378 GB, free: 3.363 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4301, allocations: 0 / 1.378 GB, free: 3.363 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003099/0.4304, allocations: 59.86 kB / 1.378 GB, free: 3.305 MB / 0.8698 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 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0008213/0.4312, allocations: 0.8417 MB / 1.378 GB, free: 2.449 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002901/0.4315, allocations: 95.89 kB / 1.378 GB, free: 2.355 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4315, allocations: 0 / 1.378 GB, free: 2.355 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.4316, allocations: 55.89 kB / 1.379 GB, free: 2.301 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.4319, allocations: 19.94 kB / 1.379 GB, free: 2.281 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008947/0.4328, allocations: 1.234 MB / 1.38 GB, free: 0.9805 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.433, allocations: 0.7004 MB / 1.38 GB, free: 260 kB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.486e-05/0.433, allocations: 8.656 kB / 1.38 GB, free: 252 kB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.4331, allocations: 23.42 kB / 1.38 GB, free: 228 kB / 0.8698 GB Notification: Performance of SimCode: time 2.11e-07/0.4331, allocations: 0 / 1.38 GB, free: 228 kB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01297/0.4461, allocations: 2.88 MB / 1.383 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002886/0.4464, allocations: 238.1 kB / 1.384 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/2.011, allocations: 2.953 kB / 1.384 GB, free: 13.23 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat does not exist to compare? outputFormat=mat