Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_8_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.0008774/0.0008774, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.0009678/0.0009678, allocations: 177.2 kB / 16.27 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.262/1.262, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.552/1.552, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006125/0.0006125, allocations: 14.94 kB / 0.6744 GB, free: 25.87 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2652, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001953/0.2672, allocations: 1.266 MB / 0.7892 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.2687, allocations: 0.784 MB / 0.79 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.109e-05/0.2687, allocations: 4 kB / 0.79 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.246e-05/0.2687, allocations: 3.938 kB / 0.79 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.2689, allocations: 15.86 kB / 0.79 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.2693, allocations: 107.8 kB / 0.7901 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.2695, allocations: 99.62 kB / 0.7902 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.901e-05/0.2696, allocations: 15.98 kB / 0.7902 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.415e-05/0.2697, allocations: 35.86 kB / 0.7903 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.233e-05/0.2698, allocations: 47.81 kB / 0.7903 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.2698, allocations: 4 kB / 0.7903 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.27, allocations: 91.84 kB / 0.7904 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.749e-05/0.27, allocations: 15.92 kB / 0.7904 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.2701, allocations: 73.41 kB / 0.7905 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.2703, allocations: 151.9 kB / 0.7906 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2703, allocations: 0 / 0.7906 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2704, allocations: 0 / 0.7906 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.2704, allocations: 0 / 0.7906 GB, free: 8.746 MB / 0.6075 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.0007129/0.2711, allocations: 0.4924 MB / 0.7911 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2711, allocations: 11.97 kB / 0.7911 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.501e-05/0.2712, allocations: 42.69 kB / 0.7912 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.2712, allocations: 8.844 kB / 0.7912 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.2714, allocations: 180.1 kB / 0.7914 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.2714, allocations: 8.375 kB / 0.7914 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.2714, allocations: 8.375 kB / 0.7914 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.2716, allocations: 85.7 kB / 0.7915 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.2716, allocations: 0 / 0.7915 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.2716, allocations: 0 / 0.7915 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.2717, allocations: 4 kB / 0.7915 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001561/0.2718, allocations: 55.95 kB / 0.7915 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005774/0.2724, allocations: 340.7 kB / 0.7918 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.2726, allocations: 82.7 kB / 0.7919 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.328e-05/0.2727, allocations: 44.84 kB / 0.792 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.2728, allocations: 4 kB / 0.792 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.273, allocations: 103.2 kB / 0.7921 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.273, allocations: 0 / 0.7921 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004351/0.2735, allocations: 185.4 kB / 0.7922 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.2735, allocations: 51.41 kB / 0.7923 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.2736, allocations: 148.6 kB / 0.7924 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.2737, allocations: 25.7 kB / 0.7925 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.541e-05/0.2737, allocations: 96.14 kB / 0.7925 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.359e-05/0.2738, allocations: 31.59 kB / 0.7926 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.252e-05/0.2738, allocations: 17.72 kB / 0.7926 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.274, allocations: 330.8 kB / 0.7929 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.9e-05/0.274, allocations: 27.98 kB / 0.7929 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.2742, allocations: 77.06 kB / 0.793 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.2744, allocations: 113 kB / 0.7931 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2744, allocations: 0 / 0.7931 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002523/0.2746, allocations: 141.5 kB / 0.7932 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.2746, allocations: 8.031 kB / 0.7933 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2747, allocations: 4 kB / 0.7933 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.2747, allocations: 0 / 0.7933 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.998e-05/0.2748, allocations: 15.98 kB / 0.7933 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.2748, allocations: 4 kB / 0.7933 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.2749, allocations: 27.83 kB / 0.7933 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.2749, allocations: 8 kB / 0.7933 GB, free: 5.723 MB / 0.6075 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 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.275, allocations: 138.3 kB / 0.7934 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.769e-05/0.2751, allocations: 7.906 kB / 0.7935 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000359/0.2754, allocations: 174.3 kB / 0.7936 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.2754, allocations: 0 / 0.7936 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.2755, allocations: 7.938 kB / 0.7936 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2755, allocations: 0 / 0.7936 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006166/0.2761, allocations: 466.2 kB / 0.7941 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2761, allocations: 0 / 0.7941 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.841e-05/0.2762, allocations: 19.92 kB / 0.7941 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2762, allocations: 0 / 0.7941 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.2762, allocations: 8 kB / 0.7941 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.2762, allocations: 7.938 kB / 0.7941 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2762, allocations: 0 / 0.7941 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.2766, allocations: 249.8 kB / 0.7943 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.2766, allocations: 89 kB / 0.7944 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.2767, allocations: 0 / 0.7944 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.2768, allocations: 24.06 kB / 0.7945 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.2768, allocations: 15.97 kB / 0.7945 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.2769, allocations: 4 kB / 0.7945 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.24e-05/0.2769, allocations: 115.2 kB / 0.7946 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2769, allocations: 0 / 0.7946 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003083/0.2773, allocations: 40 kB / 0.7946 GB, free: 4.277 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000811/0.2781, allocations: 0.8451 MB / 0.7954 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002488/0.2783, allocations: 107.9 kB / 0.7955 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2783, allocations: 7.875 kB / 0.7956 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.2785, allocations: 51.98 kB / 0.7956 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.2788, allocations: 23.92 kB / 0.7956 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/0.2806, allocations: 1.716 MB / 0.7973 GB, free: 1.418 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.2808, allocations: 0.7041 MB / 0.798 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.171e-05/0.2809, allocations: 8.547 kB / 0.798 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.433e-05/0.281, allocations: 39.36 kB / 0.798 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.281, allocations: 0 / 0.798 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.3047, allocations: 3.078 MB / 0.801 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002518/0.305, allocations: 253 kB / 0.8013 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.072, allocations: 0 / 0.8013 GB, free: 13.46 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)