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.001139/0.001139, allocations: 99.86 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.001334/0.001335, allocations: 177.3 kB / 15.94 MB, free: 228 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.418/1.418, allocations: 223.2 MB / 239.9 MB, free: 5.328 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.526/2.526, allocations: 390.3 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003755, allocations: 11.94 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7353/0.7357, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001623/0.7374, allocations: 1.225 MB / 0.9548 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001039/0.7385, allocations: 0.7106 MB / 0.9555 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.384e-05/0.7385, allocations: 1.031 kB / 0.9555 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.689e-05/0.7385, allocations: 3.938 kB / 0.9555 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.705e-05/0.7386, allocations: 30.14 kB / 0.9555 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.739, allocations: 93.75 kB / 0.9556 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.7392, allocations: 64.94 kB / 0.9557 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.778e-05/0.7393, allocations: 10.5 kB / 0.9557 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.268e-05/0.7394, allocations: 40.48 kB / 0.9557 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.942e-05/0.7394, allocations: 41.72 kB / 0.9558 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.7395, allocations: 7.125 kB / 0.9558 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.7396, allocations: 68.27 kB / 0.9558 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.7396, allocations: 28.44 kB / 0.9559 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.084e-05/0.7397, allocations: 40.48 kB / 0.9559 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.7399, allocations: 102.4 kB / 0.956 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.7399, allocations: 1.156 kB / 0.956 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.033e-06/0.7399, allocations: 0 / 0.956 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.7399, allocations: 0 / 0.956 GB, free: 6.25 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.0006193/0.7405, allocations: 0.4939 MB / 0.9565 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.7406, allocations: 8.906 kB / 0.9565 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.558e-05/0.7406, allocations: 39.69 kB / 0.9565 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.489e-05/0.7406, allocations: 13.23 kB / 0.9565 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.7407, allocations: 185.8 kB / 0.9567 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.7408, allocations: 6.188 kB / 0.9567 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.7408, allocations: 4.594 kB / 0.9567 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.741, allocations: 88.89 kB / 0.9568 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.741, allocations: 0 / 0.9568 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.741, allocations: 9.234 kB / 0.9568 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.741, allocations: 1.25 kB / 0.9568 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.7412, allocations: 52.3 kB / 0.9569 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004677/0.7416, allocations: 333.4 kB / 0.9572 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.7418, allocations: 83 kB / 0.9573 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.7419, allocations: 4.891 kB / 0.9573 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.7421, allocations: 111.3 kB / 0.9574 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.7421, allocations: 1.281 kB / 0.9574 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003929/0.7425, allocations: 181.4 kB / 0.9575 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.7425, allocations: 55.41 kB / 0.9576 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.71e-05/0.7426, allocations: 148.5 kB / 0.9577 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.7426, allocations: 29.7 kB / 0.9578 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.7427, allocations: 96.06 kB / 0.9579 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.7427, allocations: 23.34 kB / 0.9579 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-06/0.7427, allocations: 5.969 kB / 0.9579 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.049e-05/0.7428, allocations: 320.6 kB / 0.9582 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.991e-05/0.7429, allocations: 28.98 kB / 0.9582 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.765e-05/0.743, allocations: 75.28 kB / 0.9583 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.301e-05/0.743, allocations: 37.08 kB / 0.9583 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.7431, allocations: 0 / 0.9583 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002308/0.7433, allocations: 146 kB / 0.9585 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.7433, allocations: 10.19 kB / 0.9585 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.7433, allocations: 1.438 kB / 0.9585 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.7433, allocations: 2.438 kB / 0.9585 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.7435, allocations: 22.05 kB / 0.9585 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.7435, allocations: 1.875 kB / 0.9585 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.823e-05/0.7436, allocations: 25.2 kB / 0.9585 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.7436, allocations: 5.375 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 7.551e-05/0.7437, allocations: 129 kB / 0.9587 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.728e-05/0.7437, allocations: 11.45 kB / 0.9587 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003335/0.744, allocations: 167.4 kB / 0.9588 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.7441, allocations: 6.75 kB / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.7441, allocations: 4 kB / 0.9588 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.7441, allocations: 0 / 0.9588 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005199/0.7446, allocations: 475.8 kB / 0.9593 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.7446, allocations: 1.281 kB / 0.9593 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.702e-05/0.7447, allocations: 18.45 kB / 0.9593 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.7447, allocations: 1.438 kB / 0.9593 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.7447, allocations: 1.531 kB / 0.9593 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.7447, allocations: 1.438 kB / 0.9593 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7447, allocations: 0 / 0.9593 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.745, allocations: 264.9 kB / 0.9596 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.31e-05/0.7451, allocations: 93.09 kB / 0.9597 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.7451, allocations: 1.406 kB / 0.9597 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.7452, allocations: 15.17 kB / 0.9597 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/0.7453, allocations: 9.844 kB / 0.9597 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.7453, allocations: 7.734 kB / 0.9597 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.786e-05/0.7454, allocations: 109 kB / 0.9598 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7454, allocations: 0 / 0.9598 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003298/0.7457, allocations: 45.25 kB / 0.9598 GB, free: 2.797 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.0007318/0.7464, allocations: 0.8466 MB / 0.9607 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00024/0.7467, allocations: 102.3 kB / 0.9608 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.7467, allocations: 0 / 0.9608 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.7468, allocations: 54.73 kB / 0.9608 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.7471, allocations: 18.64 kB / 0.9608 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008141/0.7479, allocations: 1.253 MB / 0.9621 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.748, allocations: 0.7024 MB / 0.9627 GB, free: 32 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.226e-05/0.7481, allocations: 10.05 kB / 0.9627 GB, free: 28 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.7482, allocations: 38.23 kB / 0.9628 GB, free: 0 / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.7482, allocations: 48 / 0.9628 GB, free: 0 / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.7652, allocations: 3.059 MB / 0.9658 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002034/0.7654, allocations: 238 kB / 0.966 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.634, allocations: 0 / 0.966 GB, free: 14.3 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