Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_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.009175/0.009175, allocations: 103.2 kB / 15.73 MB, free: 6.047 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.001749/0.001749, allocations: 195.7 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.84/2.84, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 67.88 kB / 1.054 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.368, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003569/0.3716, allocations: 1.549 MB / 1.209 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.3733, allocations: 0.7754 MB / 1.21 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.28e-05/0.3734, allocations: 0 / 1.21 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.561e-05/0.3735, allocations: 7.875 kB / 1.21 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.3736, allocations: 23.78 kB / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007305/0.3743, allocations: 127.6 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000185/0.3745, allocations: 99.64 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.3747, allocations: 19.97 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.3748, allocations: 47.8 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.3749, allocations: 43.81 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.375, allocations: 8 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.3752, allocations: 95.91 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.941e-05/0.3753, allocations: 23.91 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.619e-05/0.3753, allocations: 39.8 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.3757, allocations: 171.7 kB / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3757, allocations: 0 / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3757, allocations: 4 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.3757, allocations: 0 / 1.21 GB, free: 7.16 MB / 0.9669 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.0008768/0.3766, allocations: 0.5001 MB / 1.211 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.3767, allocations: 12.62 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.568e-05/0.3767, allocations: 34.73 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.247e-05/0.3768, allocations: 8.844 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.3769, allocations: 184.1 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.377, allocations: 8.375 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.377, allocations: 8.359 kB / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.3773, allocations: 89.7 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.3773, allocations: 0 / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.3773, allocations: 0 / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3773, allocations: 4 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.3775, allocations: 47.95 kB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.3781, allocations: 344.6 kB / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.3783, allocations: 78.67 kB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.548e-05/0.3784, allocations: 44.83 kB / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.3785, allocations: 0 / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003039/0.3788, allocations: 99.39 kB / 1.212 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.3788, allocations: 0 / 1.212 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004416/0.3792, allocations: 181.3 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.3793, allocations: 59.39 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.3794, allocations: 135.4 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.3794, allocations: 29.7 kB / 1.212 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.741e-05/0.3795, allocations: 100.1 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.3795, allocations: 27.7 kB / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.684e-05/0.3796, allocations: 37.7 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3797, allocations: 326.8 kB / 1.212 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-05/0.3798, allocations: 27.97 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.804e-05/0.3799, allocations: 69.08 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.3801, allocations: 105.1 kB / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3801, allocations: 0 / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002599/0.3804, allocations: 141.3 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3804, allocations: 8.094 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3805, allocations: 7.984 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.3805, allocations: 0 / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.3806, allocations: 19.92 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.3806, allocations: 7.984 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.3807, allocations: 11.94 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.3808, allocations: 11.98 kB / 1.213 GB, free: 4.148 MB / 0.9669 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.0001022/0.3809, allocations: 121.7 kB / 1.213 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.3809, allocations: 15.95 kB / 1.213 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000365/0.3813, allocations: 180.5 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.3813, allocations: 4 kB / 1.213 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3813, allocations: 4 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3813, allocations: 0 / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006276/0.382, allocations: 462.2 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.382, allocations: 0 / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.325e-05/0.3821, allocations: 19.98 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.3821, allocations: 0 / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.3821, allocations: 4 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.3821, allocations: 3.938 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3821, allocations: 0 / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000329/0.3824, allocations: 251.3 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.42e-05/0.3825, allocations: 85.02 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.3825, allocations: 0 / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.3827, allocations: 23.86 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.67e-05/0.3827, allocations: 11.98 kB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.3827, allocations: 4 kB / 1.214 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.417e-05/0.3828, allocations: 109.7 kB / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3828, allocations: 0 / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000376/0.3832, allocations: 44 kB / 1.214 GB, free: 2.727 MB / 0.9669 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.0009318/0.3842, allocations: 0.837 MB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002698/0.3844, allocations: 97 kB / 1.215 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3845, allocations: 4.188 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.3846, allocations: 55.92 kB / 1.215 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.3849, allocations: 24.3 kB / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.3872, allocations: 1.689 MB / 1.217 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.3877, allocations: 0.7041 MB / 1.217 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.829e-05/0.3878, allocations: 8.547 kB / 1.217 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.268e-05/0.3879, allocations: 35.42 kB / 1.217 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3879, allocations: 0 / 1.217 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.412, allocations: 3.526 MB / 1.221 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.66/8.072, allocations: 11 kB / 1.221 GB, free: 11.75 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.pInter,lig.samplePeriod,lig.seed,time