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.499/2.499, allocations: 387.1 MB / 399.7 MB, free: 9.52 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.001533/0.001533, allocations: 180 kB / 492.3 MB, free: 0.6445 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.776/1.776, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.001037/0.001037, allocations: 83.95 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.875e-05/3.895e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2872, allocations: 142.4 MB / 1.212 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.496/1.783, allocations: 151.3 MB / 1.36 GB, free: 18.86 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003445/1.784, allocations: 83.73 kB / 1.36 GB, free: 18.86 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.01172/1.796, allocations: 3.176 MB / 1.363 GB, free: 34.4 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.156e-06/1.796, allocations: 0 / 1.363 GB, free: 34.4 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.194e-05/1.796, allocations: 0 / 1.363 GB, free: 34.4 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0009613/1.797, allocations: 476.8 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 7.012e-05/1.797, allocations: 13.44 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.334e-05/1.797, allocations: 34 kB / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.102e-05/1.797, allocations: 7.875 kB / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/1.797, allocations: 186.2 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/1.797, allocations: 36.17 kB / 1.364 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/1.797, allocations: 3.844 kB / 1.364 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002203/1.798, allocations: 71.34 kB / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/1.798, allocations: 0 / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/1.798, allocations: 4 kB / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/1.798, allocations: 3.938 kB / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/1.798, allocations: 35.8 kB / 1.364 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007892/1.799, allocations: 327.8 kB / 1.365 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/1.799, allocations: 66.2 kB / 1.365 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.952e-05/1.799, allocations: 31.52 kB / 1.365 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/1.799, allocations: 0 / 1.365 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/1.799, allocations: 88.69 kB / 1.365 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.943e-06/1.799, allocations: 0 / 1.365 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0003525/1.799, allocations: 117 kB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/1.8, allocations: 59.22 kB / 1.365 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/1.8, allocations: 124.9 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/1.8, allocations: 25.7 kB / 1.365 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.822e-05/1.8, allocations: 93.2 kB / 1.365 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.129e-05/1.8, allocations: 20.83 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/1.8, allocations: 3.312 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001304/1.8, allocations: 322.4 kB / 1.366 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.131e-05/1.8, allocations: 22.88 kB / 1.366 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.819e-05/1.8, allocations: 66.97 kB / 1.366 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.955e-05/1.8, allocations: 31.53 kB / 1.366 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/1.8, allocations: 0 / 1.366 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002409/1.8, allocations: 123.4 kB / 1.366 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/1.801, allocations: 3.906 kB / 1.366 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/1.801, allocations: 3.906 kB / 1.366 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/1.801, allocations: 0 / 1.366 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/1.801, allocations: 20.25 kB / 1.366 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/1.801, allocations: 3.844 kB / 1.366 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/1.801, allocations: 24.53 kB / 1.366 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/1.801, allocations: 11.75 kB / 1.366 GB, free: 32.5 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,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete 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.0001145/1.801, allocations: 114.7 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/1.801, allocations: 9.25 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.558e-05/1.801, allocations: 8.375 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/1.801, allocations: 5.016 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/1.801, allocations: 3.953 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/1.801, allocations: 3.938 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005702/1.802, allocations: 413.1 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.802, allocations: 0 / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.803e-05/1.802, allocations: 14.36 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/1.802, allocations: 3.844 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/1.802, allocations: 7.094 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/1.802, allocations: 0 / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.802, allocations: 0 / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/1.802, allocations: 217.5 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/1.802, allocations: 81.02 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/1.802, allocations: 5.188 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/1.802, allocations: 18.69 kB / 1.367 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.479e-05/1.802, allocations: 9.984 kB / 1.367 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/1.802, allocations: 10.55 kB / 1.367 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.325e-05/1.803, allocations: 104 kB / 1.367 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.803, allocations: 0 / 1.367 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004019/1.803, allocations: 57.72 kB / 1.367 GB, free: 31.73 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 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * 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.000842/1.804, allocations: 0.8069 MB / 1.368 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002047/1.804, allocations: 74.3 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.804, allocations: 0 / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.037e-05/1.804, allocations: 36.47 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/1.804, allocations: 23.22 kB / 1.368 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006169/1.805, allocations: 195 kB / 1.368 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/1.805, allocations: 0.6991 MB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.391e-05/1.805, allocations: 4.453 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.204e-05/1.806, allocations: 27.66 kB / 1.369 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of SimCode: time 8.01e-07/1.806, allocations: 0 / 1.369 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/1.825, allocations: 2.915 MB / 1.372 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002337/1.825, allocations: 192.1 kB / 1.372 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/3.52, allocations: 0 / 1.372 GB, free: 29.69 MB / 0.8386 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