Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.132/2.132, 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.001055/0.001055, allocations: 183.2 kB / 498.1 MB, free: 5.68 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.494/1.494, allocations: 223.2 MB / 0.7948 GB, free: 18.84 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.0009673/0.0009673, allocations: 104.2 kB / 0.9346 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003833/0.0003832, allocations: 12.22 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2852, allocations: 142.4 MB / 1.223 GB, free: 89.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1937/0.4789, allocations: 151.4 MB / 1.371 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/0.4793, allocations: 87.95 kB / 1.371 GB, free: 1.766 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.01018/0.4895, allocations: 3.212 MB / 1.374 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.076e-06/0.4896, allocations: 0 / 1.374 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.343e-05/0.4896, allocations: 8 kB / 1.374 GB, free: 14.54 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.0007069/0.4903, allocations: 478.8 kB / 1.375 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.4904, allocations: 8.031 kB / 1.375 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.967e-05/0.4904, allocations: 34.55 kB / 1.375 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.078e-05/0.4905, allocations: 11.86 kB / 1.375 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.4906, allocations: 171 kB / 1.375 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.4906, allocations: 8 kB / 1.375 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.4907, allocations: 4 kB / 1.375 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.4909, allocations: 81.73 kB / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.4909, allocations: 3.984 kB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.4909, allocations: 4 kB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.4909, allocations: 3.938 kB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.4911, allocations: 43.97 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006397/0.4917, allocations: 332.7 kB / 1.375 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.4919, allocations: 74.56 kB / 1.375 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.4919, allocations: 4 kB / 1.375 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.4921, allocations: 87.36 kB / 1.375 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.894e-06/0.4921, allocations: 0 / 1.375 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0004122/0.4926, allocations: 169.4 kB / 1.376 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.4926, allocations: 59.41 kB / 1.376 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.4927, allocations: 128.7 kB / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.4927, allocations: 25.7 kB / 1.376 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.4928, allocations: 92.38 kB / 1.376 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.4929, allocations: 23.7 kB / 1.376 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-06/0.4929, allocations: 0 / 1.376 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.493, allocations: 318.8 kB / 1.376 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.889e-05/0.4931, allocations: 31.98 kB / 1.376 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.465e-05/0.4932, allocations: 69.12 kB / 1.376 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.114e-05/0.4933, allocations: 39.98 kB / 1.376 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4933, allocations: 0 / 1.376 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002425/0.4935, allocations: 125.8 kB / 1.376 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.4936, allocations: 11.98 kB / 1.376 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.4936, allocations: 0 / 1.376 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.4936, allocations: 4 kB / 1.376 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.4937, allocations: 27.98 kB / 1.376 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.4937, allocations: 3.953 kB / 1.376 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.4939, allocations: 12 kB / 1.376 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.4939, allocations: 11.98 kB / 1.376 GB, free: 11.84 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.0001112/0.494, allocations: 126.4 kB / 1.377 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.494, allocations: 7.906 kB / 1.377 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003213/0.4944, allocations: 149.9 kB / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.4944, allocations: 0 / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.4944, allocations: 0 / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4944, allocations: 3.953 kB / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005536/0.4949, allocations: 442.4 kB / 1.377 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.495, allocations: 0 / 1.377 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.8e-05/0.495, allocations: 8 kB / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.495, allocations: 4 kB / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.4951, allocations: 7.938 kB / 1.377 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.4951, allocations: 0 / 1.377 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4951, allocations: 0 / 1.377 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.4954, allocations: 235.6 kB / 1.377 GB, free: 10.78 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.482e-05/0.4954, allocations: 92.98 kB / 1.377 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.4955, allocations: 0 / 1.377 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.4956, allocations: 15.94 kB / 1.377 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.4956, allocations: 11.98 kB / 1.377 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.4957, allocations: 4 kB / 1.378 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.432e-05/0.4957, allocations: 103.2 kB / 1.378 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4957, allocations: 0 / 1.378 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000334/0.4961, allocations: 55.98 kB / 1.378 GB, free: 10.48 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 (12): * Single equations (assignments): 9 * 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.0008551/0.4969, allocations: 0.8401 MB / 1.378 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.4972, allocations: 87.83 kB / 1.379 GB, free: 9.551 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4972, allocations: 0 / 1.379 GB, free: 9.551 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.4973, allocations: 60.16 kB / 1.379 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.4976, allocations: 15.94 kB / 1.379 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.4986, allocations: 1.225 MB / 1.38 GB, free: 8.176 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.4988, allocations: 0.6965 MB / 1.381 GB, free: 7.453 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.37e-05/0.4989, allocations: 8.422 kB / 1.381 GB, free: 7.445 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/0.499, allocations: 27.42 kB / 1.381 GB, free: 7.418 MB / 0.8855 GB Notification: Performance of SimCode: time 5.31e-07/0.499, allocations: 4 kB / 1.381 GB, free: 7.414 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01544/0.5144, allocations: 2.876 MB / 1.383 GB, free: 4.684 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000215/0.5147, allocations: 237.3 kB / 1.384 GB, free: 4.438 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/2.121, allocations: 7.938 kB / 1.384 GB, free: 4.43 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat does not exist to compare? outputFormat=mat