Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.001108/0.001108, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001384/0.001384, allocations: 168.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.433/1.433, allocations: 223.2 MB / 240 MB, free: 5.355 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.415/2.415, allocations: 390.4 MB / 0.6655 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003663, allocations: 11.98 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8818/0.8822, allocations: 142.3 MB / 0.9538 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.00159/0.8839, allocations: 1.232 MB / 0.9551 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001103/0.885, allocations: 0.7119 MB / 0.9557 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.787e-05/0.885, allocations: 1.5 kB / 0.9557 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.771e-05/0.8851, allocations: 7.922 kB / 0.9558 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.8852, allocations: 18.36 kB / 0.9558 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004379/0.8856, allocations: 106.6 kB / 0.9559 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.8857, allocations: 86.58 kB / 0.956 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.776e-05/0.8858, allocations: 6.281 kB / 0.956 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.8859, allocations: 44.61 kB / 0.956 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.016e-05/0.886, allocations: 41.14 kB / 0.956 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.8861, allocations: 4.094 kB / 0.956 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.8862, allocations: 81.92 kB / 0.9561 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.872e-05/0.8863, allocations: 28.3 kB / 0.9562 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.405e-05/0.8863, allocations: 44.72 kB / 0.9562 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.8865, allocations: 115.4 kB / 0.9563 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.8865, allocations: 0 / 0.9563 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.834e-06/0.8865, allocations: 0 / 0.9563 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.8866, allocations: 1.062 kB / 0.9563 GB, free: 6.168 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006903/0.8872, allocations: 499.1 kB / 0.9568 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.8873, allocations: 8.75 kB / 0.9568 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.8873, allocations: 36.81 kB / 0.9568 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.8874, allocations: 12.55 kB / 0.9568 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.8875, allocations: 186.8 kB / 0.957 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.8875, allocations: 3.344 kB / 0.957 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.8876, allocations: 8.156 kB / 0.957 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.8877, allocations: 77.52 kB / 0.9571 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.8878, allocations: 0 / 0.9571 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.8878, allocations: 8.953 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.8878, allocations: 1.062 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.8879, allocations: 52.58 kB / 0.9572 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005114/0.8885, allocations: 345.9 kB / 0.9575 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.8887, allocations: 78.02 kB / 0.9576 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.191e-05/0.8888, allocations: 44.73 kB / 0.9576 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.8888, allocations: 0.9688 kB / 0.9576 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.8891, allocations: 112.7 kB / 0.9577 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.803e-06/0.8891, allocations: 0 / 0.9577 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004383/0.8895, allocations: 172 kB / 0.9579 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.8896, allocations: 56.56 kB / 0.9579 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.8897, allocations: 151.8 kB / 0.9581 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.8897, allocations: 31.2 kB / 0.9581 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.601e-05/0.8897, allocations: 95.02 kB / 0.9582 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.8898, allocations: 31.47 kB / 0.9582 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.8898, allocations: 5.219 kB / 0.9582 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.883e-05/0.8899, allocations: 325.4 kB / 0.9585 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.473e-05/0.8899, allocations: 29.14 kB / 0.9586 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.013e-05/0.89, allocations: 75.12 kB / 0.9586 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.419e-05/0.8901, allocations: 37.48 kB / 0.9587 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.8901, allocations: 3.953 kB / 0.9587 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002294/0.8904, allocations: 138.3 kB / 0.9588 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.8904, allocations: 5.344 kB / 0.9588 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.8904, allocations: 1.812 kB / 0.9588 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.8904, allocations: 1.922 kB / 0.9588 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.8905, allocations: 25.55 kB / 0.9588 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.8906, allocations: 1.562 kB / 0.9589 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.295e-05/0.8907, allocations: 22.52 kB / 0.9589 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.8907, allocations: 7.828 kB / 0.9589 GB, free: 3.797 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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 7.605e-05/0.8908, allocations: 128.3 kB / 0.959 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.8908, allocations: 13.67 kB / 0.959 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003191/0.8911, allocations: 170.9 kB / 0.9592 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.8911, allocations: 1.562 kB / 0.9592 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.8911, allocations: 6.062 kB / 0.9592 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.8911, allocations: 0 / 0.9592 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005198/0.8917, allocations: 470.6 kB / 0.9596 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.8917, allocations: 1.125 kB / 0.9596 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.575e-05/0.8918, allocations: 15.03 kB / 0.9596 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.8918, allocations: 0.6562 kB / 0.9596 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.8918, allocations: 10.58 kB / 0.9597 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.8918, allocations: 0 / 0.9597 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.8918, allocations: 1.219 kB / 0.9597 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.8921, allocations: 256.5 kB / 0.9599 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.08e-05/0.8921, allocations: 91.58 kB / 0.96 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.8922, allocations: 5.406 kB / 0.96 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.8923, allocations: 11.95 kB / 0.96 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.8923, allocations: 14.36 kB / 0.96 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.8924, allocations: 7.828 kB / 0.96 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.561e-05/0.8924, allocations: 103.8 kB / 0.9601 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.82e-07/0.8924, allocations: 0 / 0.9601 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003252/0.8928, allocations: 50.55 kB / 0.9602 GB, free: 2.707 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0007844/0.8935, allocations: 0.8523 MB / 0.961 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002742/0.8938, allocations: 95.42 kB / 0.9611 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.8938, allocations: 1.375 kB / 0.9611 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.894, allocations: 62.28 kB / 0.9612 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.8943, allocations: 16.86 kB / 0.9612 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.8955, allocations: 0.7599 MB / 0.9619 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.8957, allocations: 0.7045 MB / 0.9626 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.561e-05/0.8958, allocations: 6.656 kB / 0.9626 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.8958, allocations: 46.12 kB / 0.9627 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of SimCode: time 5.81e-07/0.8958, allocations: 0 / 0.9627 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01472/0.9106, allocations: 3.071 MB / 0.9657 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.9108, allocations: 247.9 kB / 0.9659 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.696, allocations: 0 / 0.9659 GB, free: 14.82 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat does not exist to compare? outputFormat=mat