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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 91.38 kB / 15.06 MB, free: 1.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 223.2 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.54/2.54, allocations: 390.4 MB / 0.6655 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003864/0.0003866, allocations: 12 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7833/0.7837, allocations: 142.3 MB / 0.9538 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.001865/0.7856, allocations: 1.216 MB / 0.955 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.7869, allocations: 0.7103 MB / 0.9557 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.081e-05/0.787, allocations: 1.125 kB / 0.9557 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.008e-05/0.787, allocations: 11.86 kB / 0.9557 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.7871, allocations: 6.312 kB / 0.9557 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.7876, allocations: 97.55 kB / 0.9558 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.7878, allocations: 82.7 kB / 0.9559 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.634e-05/0.7879, allocations: 9.578 kB / 0.9559 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.131e-05/0.788, allocations: 39.88 kB / 0.956 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.341e-05/0.7881, allocations: 31.66 kB / 0.956 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.7881, allocations: 3.656 kB / 0.956 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.7883, allocations: 84.38 kB / 0.9561 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.7883, allocations: 23.7 kB / 0.9561 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.485e-05/0.7884, allocations: 44.11 kB / 0.9561 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.7885, allocations: 101.9 kB / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.7885, allocations: 1.312 kB / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7885, allocations: 0 / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.7886, allocations: 0 / 0.9562 GB, free: 6.273 MB / 0.7169 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.000677/0.7892, allocations: 467.4 kB / 0.9567 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.7893, allocations: 9.906 kB / 0.9567 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.793e-05/0.7893, allocations: 35.72 kB / 0.9567 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.182e-05/0.7894, allocations: 13.11 kB / 0.9567 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.7895, allocations: 175.7 kB / 0.9569 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.956e-05/0.7896, allocations: 35.95 kB / 0.9569 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.7896, allocations: 4.031 kB / 0.9569 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.7898, allocations: 83.58 kB / 0.957 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.7898, allocations: 4.969 kB / 0.957 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.7898, allocations: 0 / 0.957 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.7899, allocations: 5.484 kB / 0.957 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.7901, allocations: 57.89 kB / 0.9571 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005064/0.7906, allocations: 332.6 kB / 0.9574 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001988/0.7908, allocations: 66.52 kB / 0.9575 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.7909, allocations: 43.92 kB / 0.9575 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.7909, allocations: 5.344 kB / 0.9575 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.7912, allocations: 95.59 kB / 0.9576 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.7912, allocations: 3.938 kB / 0.9576 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004721/0.7917, allocations: 172.1 kB / 0.9578 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.7917, allocations: 58.47 kB / 0.9578 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.093e-05/0.7918, allocations: 135.2 kB / 0.958 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.7918, allocations: 31.27 kB / 0.958 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.461e-05/0.7919, allocations: 96.02 kB / 0.9581 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.7919, allocations: 19.45 kB / 0.9581 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-06/0.7919, allocations: 4 kB / 0.9581 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.173e-05/0.792, allocations: 322.4 kB / 0.9584 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.398e-05/0.7921, allocations: 34.2 kB / 0.9584 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.7922, allocations: 69.38 kB / 0.9585 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.7923, allocations: 40.55 kB / 0.9585 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7923, allocations: 1.344 kB / 0.9586 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002807/0.7926, allocations: 141.5 kB / 0.9587 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.7926, allocations: 13.45 kB / 0.9587 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.7927, allocations: 2.469 kB / 0.9587 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.7927, allocations: 6.062 kB / 0.9587 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.7928, allocations: 16.86 kB / 0.9587 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.7928, allocations: 1.219 kB / 0.9587 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.7929, allocations: 23.14 kB / 0.9587 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.7929, allocations: 3.938 kB / 0.9587 GB, free: 3.941 MB / 0.7169 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,occ.y,$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.273e-05/0.793, allocations: 126.2 kB / 0.9589 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.7931, allocations: 16.19 kB / 0.9589 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.865e-05/0.7931, allocations: 19.14 kB / 0.9589 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.7931, allocations: 1.344 kB / 0.9589 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.7931, allocations: 3.938 kB / 0.9589 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.7931, allocations: 3.938 kB / 0.9589 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005601/0.7937, allocations: 436.2 kB / 0.9593 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.7937, allocations: 0 / 0.9593 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.256e-05/0.7938, allocations: 10.95 kB / 0.9593 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.7938, allocations: 1.125 kB / 0.9593 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.7938, allocations: 1.156 kB / 0.9593 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.7938, allocations: 1.031 kB / 0.9593 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.7938, allocations: 4 kB / 0.9593 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.7942, allocations: 230.3 kB / 0.9596 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.481e-05/0.7942, allocations: 87.56 kB / 0.9596 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.7942, allocations: 2.094 kB / 0.9597 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.7944, allocations: 19.8 kB / 0.9597 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.7944, allocations: 13.55 kB / 0.9597 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.7944, allocations: 7.766 kB / 0.9597 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.838e-05/0.7945, allocations: 104.5 kB / 0.9598 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7945, allocations: 0 / 0.9598 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000339/0.7948, allocations: 40.5 kB / 0.9598 GB, free: 2.973 MB / 0.7169 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 (occ.y,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.0007518/0.7956, allocations: 0.8271 MB / 0.9606 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002855/0.7959, allocations: 93.84 kB / 0.9607 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.7959, allocations: 1.375 kB / 0.9607 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.796, allocations: 48.8 kB / 0.9608 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.7963, allocations: 15.61 kB / 0.9608 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.7974, allocations: 0.6933 MB / 0.9615 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.7976, allocations: 0.6972 MB / 0.9621 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.908e-05/0.7976, allocations: 13.73 kB / 0.9622 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.228e-05/0.7977, allocations: 32.08 kB / 0.9622 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.7977, allocations: 0 / 0.9622 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.8112, allocations: 2.721 MB / 0.9648 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.8115, allocations: 237.3 kB / 0.9651 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.625, allocations: 0 / 0.9651 GB, free: 15.31 MB / 0.7325 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