Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",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.0008114/0.0008116, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.0008262/0.0008261, allocations: 172.7 kB / 15.95 MB, free: 208 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.426/1.426, allocations: 223.2 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.654/2.654, allocations: 409.4 MB / 0.684 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003475, allocations: 11.98 kB / 0.8378 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7531/0.7535, allocations: 146.8 MB / 0.9811 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.001921/0.7555, allocations: 1.218 MB / 0.9823 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.7568, allocations: 0.7017 MB / 0.983 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.234e-05/0.7569, allocations: 4 kB / 0.983 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.321e-05/0.757, allocations: 3.938 kB / 0.983 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.7571, allocations: 11.92 kB / 0.983 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005809/0.7577, allocations: 99.75 kB / 0.9831 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.7579, allocations: 87.7 kB / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.794e-05/0.758, allocations: 15.97 kB / 0.9832 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.7581, allocations: 47.84 kB / 0.9833 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.518e-05/0.7582, allocations: 39.83 kB / 0.9833 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.7582, allocations: 4 kB / 0.9833 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.7584, allocations: 83.84 kB / 0.9834 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.036e-05/0.7585, allocations: 23.91 kB / 0.9834 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.244e-05/0.7585, allocations: 29.7 kB / 0.9834 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001936/0.7587, allocations: 110.1 kB / 0.9835 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.7587, allocations: 0 / 0.9835 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.346e-06/0.7587, allocations: 0 / 0.9835 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.7588, allocations: 3.938 kB / 0.9835 GB, free: 3.781 MB / 0.7325 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.0008183/0.7596, allocations: 492.1 kB / 0.984 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.7596, allocations: 12.03 kB / 0.984 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.941e-05/0.7597, allocations: 34.56 kB / 0.9841 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.7598, allocations: 7.906 kB / 0.9841 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.76, allocations: 182.9 kB / 0.9842 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.76, allocations: 0 / 0.9842 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.655e-05/0.7601, allocations: 12 kB / 0.9843 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.7603, allocations: 81.59 kB / 0.9843 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.7603, allocations: 7.922 kB / 0.9843 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.7604, allocations: 0 / 0.9843 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.7604, allocations: 4 kB / 0.9843 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.7605, allocations: 55.91 kB / 0.9844 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006216/0.7612, allocations: 336.7 kB / 0.9847 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.7614, allocations: 94.66 kB / 0.9848 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.7615, allocations: 40.84 kB / 0.9848 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.7616, allocations: 4 kB / 0.9849 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.7618, allocations: 103.3 kB / 0.9849 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.7618, allocations: 0 / 0.9849 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004554/0.7623, allocations: 185.7 kB / 0.9851 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.7624, allocations: 55.41 kB / 0.9852 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.7625, allocations: 135.6 kB / 0.9853 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.7625, allocations: 29.7 kB / 0.9853 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.969e-05/0.7626, allocations: 92.14 kB / 0.9854 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.211e-05/0.7626, allocations: 27.64 kB / 0.9855 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.006e-06/0.7626, allocations: 4 kB / 0.9855 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.7628, allocations: 318.8 kB / 0.9858 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.207e-05/0.7629, allocations: 35.98 kB / 0.9858 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.763, allocations: 62.12 kB / 0.9859 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.7631, allocations: 43.98 kB / 0.9859 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.7631, allocations: 3.953 kB / 0.9859 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002734/0.7634, allocations: 137.4 kB / 0.986 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.7634, allocations: 4 kB / 0.986 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.7634, allocations: 11.92 kB / 0.986 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.7635, allocations: 3.938 kB / 0.986 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.7636, allocations: 28.08 kB / 0.9861 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.7636, allocations: 0 / 0.9861 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.7637, allocations: 19.89 kB / 0.9861 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.7637, allocations: 4 kB / 0.9861 GB, free: 0.8984 MB / 0.7325 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 0.0001179/0.7638, allocations: 123.2 kB / 0.9862 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.7639, allocations: 15.84 kB / 0.9862 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003489/0.7642, allocations: 174.3 kB / 0.9864 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.7642, allocations: 144 / 0.9864 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7643, allocations: 7.984 kB / 0.9864 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.7643, allocations: 0 / 0.9864 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/0.7649, allocations: 461.1 kB / 0.9868 GB, free: 64 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.7649, allocations: 0 / 0.9868 GB, free: 64 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.618e-05/0.765, allocations: 12 kB / 0.9869 GB, free: 52 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.765, allocations: 0 / 0.9869 GB, free: 52 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.765, allocations: 7.984 kB / 0.9869 GB, free: 44 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.765, allocations: 11.88 kB / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.765, allocations: 0 / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/0.7654, allocations: 247.4 kB / 0.9871 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.7654, allocations: 85.02 kB / 0.9872 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.7655, allocations: 0 / 0.9872 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.7656, allocations: 15.98 kB / 0.9872 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.871e-05/0.7656, allocations: 11.98 kB / 0.9872 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.7657, allocations: 4 kB / 0.9872 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.416e-05/0.7657, allocations: 108.5 kB / 0.9873 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.91e-07/0.7657, allocations: 0 / 0.9873 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003362/0.7661, allocations: 43.94 kB / 0.9874 GB, free: 15.49 MB / 0.7481 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 (13): * Single equations (assignments): 10 * 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.0008845/0.767, allocations: 0.842 MB / 0.9882 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002613/0.7673, allocations: 91.89 kB / 0.9883 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7673, allocations: 0 / 0.9883 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.7674, allocations: 60.09 kB / 0.9883 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.7677, allocations: 21.44 kB / 0.9884 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.769, allocations: 0.7116 MB / 0.989 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.7693, allocations: 0.7004 MB / 0.9897 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.964e-05/0.7693, allocations: 12.69 kB / 0.9897 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.266e-05/0.7694, allocations: 31.42 kB / 0.9898 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.7694, allocations: 0 / 0.9898 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01464/0.7841, allocations: 2.926 MB / 0.9926 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.7843, allocations: 242.5 kB / 0.9929 GB, free: 9.922 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.762, allocations: 6.875 kB / 0.9929 GB, free: 9.918 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat does not exist to compare? outputFormat=mat