Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.001408/0.001412, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 192.7 kB / 16.53 MB, free: 6.668 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.679/2.679, allocations: 469.4 MB / 0.742 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 62.81 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2689, allocations: 159.2 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.003097/0.2721, allocations: 1.486 MB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001292/0.2734, allocations: 0.7339 MB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.502e-05/0.2735, allocations: 3.938 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.198e-05/0.2735, allocations: 11.86 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.69e-05/0.2736, allocations: 11.88 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005658/0.2742, allocations: 123.6 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.2743, allocations: 67.84 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.235e-05/0.2744, allocations: 19.98 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.615e-05/0.2745, allocations: 31.91 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.799e-05/0.2746, allocations: 39.78 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.2746, allocations: 8 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.2748, allocations: 91.91 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.232e-05/0.2749, allocations: 23.91 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.435e-05/0.2749, allocations: 27.86 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.2751, allocations: 135.9 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2752, allocations: 3.938 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.52e-07/0.2752, allocations: 0 / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.2752, allocations: 8 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005711/0.2758, allocations: 417 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2758, allocations: 12.03 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.556e-05/0.2758, allocations: 30.75 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.2759, allocations: 16.83 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.788e-05/0.276, allocations: 172.2 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.276, allocations: 8.375 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.276, allocations: 384 / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.2762, allocations: 81.77 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.2763, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.2763, allocations: 3.984 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2763, allocations: 4 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.2764, allocations: 39.91 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005857/0.277, allocations: 316.7 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.2772, allocations: 46.55 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.371e-05/0.2773, allocations: 36.97 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.2773, allocations: 0 / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.2775, allocations: 83.31 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.2775, allocations: 0 / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004331/0.278, allocations: 145.6 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.278, allocations: 51.41 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.2781, allocations: 125.8 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.2782, allocations: 29.7 kB / 1.068 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.512e-05/0.2782, allocations: 92.05 kB / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.2782, allocations: 23.73 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.2783, allocations: 25.72 kB / 1.068 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.146e-05/0.2784, allocations: 322.8 kB / 1.068 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.53e-05/0.2785, allocations: 35.86 kB / 1.068 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.069e-05/0.2786, allocations: 46.55 kB / 1.068 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.2787, allocations: 70.56 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2788, allocations: 0 / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002342/0.279, allocations: 113.6 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.279, allocations: 4 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.279, allocations: 4 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.279, allocations: 3.938 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.582e-05/0.2791, allocations: 11.98 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.2792, allocations: 4.062 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.346e-05/0.2792, allocations: 11.89 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.2793, allocations: 7.938 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (win.occ,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.242e-05/0.2793, allocations: 121.8 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.2794, allocations: 7.906 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.447e-05/0.2794, allocations: 8.375 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2794, allocations: 0 / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2794, allocations: 3.984 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2794, allocations: 4 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005461/0.28, allocations: 382.4 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.28, allocations: 0 / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-05/0.28, allocations: 4 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.28, allocations: 0 / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.2801, allocations: 0 / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2801, allocations: 11.94 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2801, allocations: 0 / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.2804, allocations: 219.3 kB / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.394e-05/0.2804, allocations: 85.02 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.2804, allocations: 0 / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.47e-05/0.2805, allocations: 11.92 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.621e-05/0.2806, allocations: 0 / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.2806, allocations: 11.98 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.622e-05/0.2806, allocations: 91.28 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.51e-07/0.2807, allocations: 0 / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000301/0.281, allocations: 39.98 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0007298/0.2817, allocations: 0.8077 MB / 1.07 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002411/0.2819, allocations: 71.91 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.282, allocations: 3.938 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.862e-05/0.2821, allocations: 39.95 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.2823, allocations: 13.97 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.284, allocations: 1.482 MB / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.2842, allocations: 0.6961 MB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.888e-05/0.2842, allocations: 7.984 kB / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.781e-05/0.2843, allocations: 15.44 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of SimCode: time 6.41e-07/0.2843, allocations: 0 / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.3037, allocations: 2.614 MB / 1.075 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.036/8.34, allocations: 1.5 kB / 1.075 GB, free: 2.211 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:time,win.TOut,win.p,TOut.amplitude,TOut.f,TOut.offset