Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.Gunay2016Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_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.001086/0.001087, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001276/0.001277, allocations: 177.3 kB / 15.95 MB, free: 216 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.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.434 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.474/2.474, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003345/0.0003346, allocations: 12 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8358/0.8362, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.001567/0.8378, allocations: 1.21 MB / 0.9548 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.8389, allocations: 0.6957 MB / 0.9555 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.534e-05/0.839, allocations: 4 kB / 0.9555 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.739e-05/0.839, allocations: 4.969 kB / 0.9555 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.8391, allocations: 22.08 kB / 0.9555 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004712/0.8396, allocations: 95.95 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.8397, allocations: 61.11 kB / 0.9556 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.8398, allocations: 13.41 kB / 0.9556 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.8399, allocations: 36.48 kB / 0.9557 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.974e-05/0.84, allocations: 45.56 kB / 0.9557 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.84, allocations: 3.406 kB / 0.9557 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.8402, allocations: 72.86 kB / 0.9558 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.443e-05/0.8402, allocations: 14.89 kB / 0.9558 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.8403, allocations: 40.95 kB / 0.9558 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.8405, allocations: 114.2 kB / 0.956 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.8405, allocations: 0 / 0.956 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.134e-06/0.8405, allocations: 1.5 kB / 0.956 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.8405, allocations: 0 / 0.956 GB, free: 6.234 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.0006708/0.8412, allocations: 485.4 kB / 0.9564 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.8412, allocations: 9.219 kB / 0.9564 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.242e-05/0.8413, allocations: 36 kB / 0.9565 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.447e-05/0.8413, allocations: 13.48 kB / 0.9565 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.8414, allocations: 176.5 kB / 0.9566 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.8415, allocations: 6.062 kB / 0.9566 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.8415, allocations: 8.156 kB / 0.9567 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.8417, allocations: 80.92 kB / 0.9567 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.8417, allocations: 0 / 0.9567 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.8417, allocations: 1.062 kB / 0.9567 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.8417, allocations: 1.156 kB / 0.9567 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001547/0.8419, allocations: 54.52 kB / 0.9568 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005096/0.8424, allocations: 351.9 kB / 0.9571 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.8426, allocations: 83.97 kB / 0.9572 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.8426, allocations: 5.75 kB / 0.9572 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.8429, allocations: 111.6 kB / 0.9573 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.8429, allocations: 0 / 0.9573 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004228/0.8433, allocations: 185.3 kB / 0.9575 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.8434, allocations: 57.81 kB / 0.9575 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.8435, allocations: 135.2 kB / 0.9577 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.8435, allocations: 30.92 kB / 0.9577 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.8435, allocations: 87.7 kB / 0.9578 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.8436, allocations: 28.08 kB / 0.9578 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.875e-06/0.8436, allocations: 4 kB / 0.9578 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.8437, allocations: 322.1 kB / 0.9581 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.886e-05/0.8437, allocations: 37.36 kB / 0.9582 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.8438, allocations: 72.89 kB / 0.9582 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.936e-05/0.8439, allocations: 37.08 kB / 0.9583 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.844, allocations: 5.312 kB / 0.9583 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002385/0.8442, allocations: 137.5 kB / 0.9584 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.8442, allocations: 10.47 kB / 0.9584 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.8442, allocations: 5.078 kB / 0.9584 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.8443, allocations: 2.562 kB / 0.9584 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.8444, allocations: 19.95 kB / 0.9584 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.8444, allocations: 3.156 kB / 0.9584 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.8445, allocations: 24.77 kB / 0.9585 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.8445, allocations: 5.25 kB / 0.9585 GB, free: 3.895 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 8.839e-05/0.8446, allocations: 115.5 kB / 0.9586 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/0.8447, allocations: 16.42 kB / 0.9586 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003487/0.845, allocations: 171.5 kB / 0.9588 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.845, allocations: 5.328 kB / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.845, allocations: 0 / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.845, allocations: 1.219 kB / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000558/0.8456, allocations: 455.8 kB / 0.9592 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.8456, allocations: 5.469 kB / 0.9592 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-05/0.8457, allocations: 13.2 kB / 0.9592 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.8457, allocations: 1.375 kB / 0.9592 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.8457, allocations: 5.688 kB / 0.9592 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8457, allocations: 0 / 0.9592 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.8457, allocations: 1.406 kB / 0.9592 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.846, allocations: 252.9 kB / 0.9595 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.8461, allocations: 83.89 kB / 0.9595 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.8461, allocations: 9.484 kB / 0.9596 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.8462, allocations: 12.33 kB / 0.9596 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.508e-05/0.8463, allocations: 9.422 kB / 0.9596 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.8463, allocations: 7.812 kB / 0.9596 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.429e-05/0.8464, allocations: 99.84 kB / 0.9597 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.062e-06/0.8464, allocations: 0 / 0.9597 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003418/0.8467, allocations: 52.72 kB / 0.9597 GB, free: 2.82 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 (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.0007058/0.8474, allocations: 0.8387 MB / 0.9606 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002405/0.8477, allocations: 93.64 kB / 0.9606 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.8477, allocations: 0 / 0.9606 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.8478, allocations: 60.91 kB / 0.9607 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.8481, allocations: 23.38 kB / 0.9607 GB, free: 2 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007956/0.8489, allocations: 1.232 MB / 0.9619 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/0.849, allocations: 0.6998 MB / 0.9626 GB, free: 68 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.435e-05/0.8491, allocations: 11.55 kB / 0.9626 GB, free: 64 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.589e-05/0.8492, allocations: 36.73 kB / 0.9627 GB, free: 32 kB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8492, allocations: 0 / 0.9627 GB, free: 32 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01368/0.8629, allocations: 2.906 MB / 0.9655 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.8631, allocations: 233.8 kB / 0.9657 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/2.621, allocations: 8 kB / 0.9657 GB, free: 14.39 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat does not exist to compare? outputFormat=mat