Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.317/2.317, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001272/0.001272, allocations: 176 kB / 0.4901 GB, free: 2.246 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.544/1.544, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.001022/0.001022, allocations: 92.38 kB / 0.9396 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003636, allocations: 8.469 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2715, allocations: 143 MB / 1.229 GB, free: 85.4 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2112/0.4827, allocations: 152.2 MB / 1.378 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.4831, allocations: 75.95 kB / 1.378 GB, free: 12.91 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.009936/0.493, allocations: 3.204 MB / 1.381 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4931, allocations: 4 kB / 1.381 GB, free: 9.703 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.904e-06/0.4931, allocations: 0 / 1.381 GB, free: 9.703 MB / 0.8855 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.0007119/0.4938, allocations: 482.3 kB / 1.382 GB, free: 9.172 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.4938, allocations: 8.562 kB / 1.382 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.4939, allocations: 34.56 kB / 1.382 GB, free: 9.121 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.409e-05/0.4939, allocations: 15.86 kB / 1.382 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.4941, allocations: 189.1 kB / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.482e-05/0.4942, allocations: 33.64 kB / 1.382 GB, free: 8.844 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.4942, allocations: 7.984 kB / 1.382 GB, free: 8.836 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.4945, allocations: 77.59 kB / 1.382 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.4945, allocations: 0 / 1.382 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.4945, allocations: 3.984 kB / 1.382 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.4945, allocations: 3.984 kB / 1.382 GB, free: 8.746 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.4947, allocations: 55.92 kB / 1.382 GB, free: 8.691 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006418/0.4954, allocations: 341 kB / 1.382 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.4956, allocations: 70.55 kB / 1.382 GB, free: 8.23 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.4956, allocations: 0 / 1.382 GB, free: 8.23 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.4959, allocations: 103.2 kB / 1.382 GB, free: 8.117 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.833e-06/0.4959, allocations: 0 / 1.382 GB, free: 8.117 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0005076/0.4964, allocations: 173.5 kB / 1.383 GB, free: 7.941 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.4965, allocations: 59.34 kB / 1.383 GB, free: 7.871 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.4966, allocations: 117.3 kB / 1.383 GB, free: 7.746 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/0.4966, allocations: 29.7 kB / 1.383 GB, free: 7.711 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.356e-05/0.4967, allocations: 96.36 kB / 1.383 GB, free: 7.609 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/0.4967, allocations: 23.66 kB / 1.383 GB, free: 7.586 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.288e-06/0.4967, allocations: 4 kB / 1.383 GB, free: 7.582 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4968, allocations: 326.8 kB / 1.383 GB, free: 7.254 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.497, allocations: 27.97 kB / 1.383 GB, free: 7.227 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.4971, allocations: 84.88 kB / 1.383 GB, free: 7.129 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.4972, allocations: 31.98 kB / 1.383 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4972, allocations: 0 / 1.383 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002983/0.4975, allocations: 141.4 kB / 1.384 GB, free: 6.953 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.4976, allocations: 11.94 kB / 1.384 GB, free: 6.941 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4976, allocations: 0 / 1.384 GB, free: 6.941 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.4976, allocations: 7.953 kB / 1.384 GB, free: 6.934 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.4977, allocations: 23.92 kB / 1.384 GB, free: 6.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.4978, allocations: 4.125 kB / 1.384 GB, free: 6.906 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.4979, allocations: 19.89 kB / 1.384 GB, free: 6.887 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.4979, allocations: 11.98 kB / 1.384 GB, free: 6.875 MB / 0.8855 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 0.0001026/0.498, allocations: 122.6 kB / 1.384 GB, free: 6.746 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.498, allocations: 7.906 kB / 1.384 GB, free: 6.738 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.654e-05/0.4981, allocations: 8.719 kB / 1.384 GB, free: 6.727 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.4981, allocations: 4 kB / 1.384 GB, free: 6.723 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.4981, allocations: 11.89 kB / 1.384 GB, free: 6.711 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4981, allocations: 3.984 kB / 1.384 GB, free: 6.707 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006597/0.4988, allocations: 422.6 kB / 1.384 GB, free: 6.238 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4988, allocations: 4 kB / 1.384 GB, free: 6.234 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.976e-05/0.4989, allocations: 15.98 kB / 1.384 GB, free: 6.219 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.4989, allocations: 3.953 kB / 1.384 GB, free: 6.215 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.4989, allocations: 0 / 1.384 GB, free: 6.215 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.4989, allocations: 4 kB / 1.384 GB, free: 6.211 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4989, allocations: 0 / 1.384 GB, free: 6.211 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.4993, allocations: 231.3 kB / 1.384 GB, free: 5.969 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.4993, allocations: 85.02 kB / 1.384 GB, free: 5.867 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.4994, allocations: 3.953 kB / 1.384 GB, free: 5.863 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.4995, allocations: 15.98 kB / 1.385 GB, free: 5.848 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/0.4996, allocations: 20 kB / 1.385 GB, free: 5.828 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.4996, allocations: 7.984 kB / 1.385 GB, free: 5.82 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.092e-05/0.4997, allocations: 101.9 kB / 1.385 GB, free: 5.723 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.41e-07/0.4997, allocations: 4 kB / 1.385 GB, free: 5.719 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003218/0.5, allocations: 56.05 kB / 1.385 GB, free: 5.664 MB / 0.8855 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.0008871/0.5009, allocations: 0.8275 MB / 1.386 GB, free: 4.824 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002987/0.5012, allocations: 87.88 kB / 1.386 GB, free: 4.738 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5012, allocations: 256 / 1.386 GB, free: 4.738 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.5013, allocations: 55.91 kB / 1.386 GB, free: 4.684 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.5016, allocations: 16.22 kB / 1.386 GB, free: 4.668 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.5027, allocations: 1.24 MB / 1.387 GB, free: 3.355 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.503, allocations: 0.6965 MB / 1.388 GB, free: 2.633 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.282e-05/0.5031, allocations: 12.66 kB / 1.388 GB, free: 2.621 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.218e-05/0.5031, allocations: 31.42 kB / 1.388 GB, free: 2.59 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.5031, allocations: 0 / 1.388 GB, free: 2.59 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01468/0.5178, allocations: 2.889 MB / 1.39 GB, free: 15.86 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002609/0.5181, allocations: 227.6 kB / 1.391 GB, free: 15.62 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/2.12, allocations: 0 / 1.391 GB, free: 15.62 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat does not exist to compare? outputFormat=mat